home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / cc / dist / c-parse.tab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-17  |  126.6 KB  |  3,982 lines

  1.  
  2. /*  A Bison parser, made from ../gcc-1.37/c-parse.y  */
  3.  
  4. #define    IDENTIFIER    258
  5. #define    TYPENAME    259
  6. #define    SCSPEC    260
  7. #define    TYPESPEC    261
  8. #define    TYPE_QUAL    262
  9. #define    CONSTANT    263
  10. #define    STRING    264
  11. #define    ELLIPSIS    265
  12. #define    SIZEOF    266
  13. #define    ENUM    267
  14. #define    STRUCT    268
  15. #define    UNION    269
  16. #define    IF    270
  17. #define    ELSE    271
  18. #define    WHILE    272
  19. #define    DO    273
  20. #define    FOR    274
  21. #define    SWITCH    275
  22. #define    CASE    276
  23. #define    DEFAULT    277
  24. #define    BREAK    278
  25. #define    CONTINUE    279
  26. #define    RETURN    280
  27. #define    GOTO    281
  28. #define    ASM    282
  29. #define    TYPEOF    283
  30. #define    ALIGNOF    284
  31. #define    ATTRIBUTE    285
  32. #define    ASSIGN    286
  33. #define    OROR    287
  34. #define    ANDAND    288
  35. #define    EQCOMPARE    289
  36. #define    ARITHCOMPARE    290
  37. #define    LSHIFT    291
  38. #define    RSHIFT    292
  39. #define    UNARY    293
  40. #define    PLUSPLUS    294
  41. #define    MINUSMINUS    295
  42. #define    HYPERUNARY    296
  43. #define    POINTSAT    297
  44.  
  45. #line 39 "../gcc-1.37/c-parse.y"
  46.  
  47. #include "config.h"
  48. #include "tree.h"
  49. #include "input.h"
  50. #include "c-parse.h"
  51. #include "c-tree.h"
  52.  
  53. #include <stdio.h>
  54. #include <errno.h>
  55.  
  56. #ifndef errno
  57. extern int errno;
  58. #endif
  59.  
  60. void yyerror ();
  61.  
  62. /* Cause the `yydebug' variable to be defined.  */
  63. #define YYDEBUG 1
  64.  
  65. #line 61 "../gcc-1.37/c-parse.y"
  66. typedef union {long itype; tree ttype; enum tree_code code; } YYSTYPE;
  67. #line 153 "../gcc-1.37/c-parse.y"
  68.  
  69. /* the declaration found for the last IDENTIFIER token read in.
  70.    yylex must look this up to detect typedefs, which get token type TYPENAME,
  71.    so it is left around in case the identifier is not a typedef but is
  72.    used in a context which makes it a reference to a variable.  */
  73. static tree lastiddecl;
  74.  
  75. static tree make_pointer_declarator ();
  76. static tree combine_strings ();
  77. static void reinit_parse_for_function ();
  78.  
  79. /* List of types and structure classes of the current declaration.  */
  80. tree current_declspecs;
  81.  
  82. /* Stack of saved values of current_declspecs.  */
  83. tree declspec_stack;
  84.  
  85. int undeclared_variable_notice;    /* 1 if we explained undeclared var errors.  */
  86.  
  87. static int yylex ();
  88.  
  89. #ifndef YYLTYPE
  90. typedef
  91.   struct yyltype
  92.     {
  93.       int timestamp;
  94.       int first_line;
  95.       int first_column;
  96.       int last_line;
  97.       int last_column;
  98.       char *text;
  99.    }
  100.   yyltype;
  101.  
  102. #define YYLTYPE yyltype
  103. #endif
  104.  
  105. #include <stdio.h>
  106.  
  107. #ifndef __STDC__
  108. #define const
  109. #endif
  110.  
  111.  
  112.  
  113. #define    YYFINAL        514
  114. #define    YYFLAG        -32768
  115. #define    YYNTBASE    65
  116.  
  117. #define YYTRANSLATE(x) ((unsigned)(x) <= 297 ? yytranslate[x] : 171)
  118.  
  119. static const char yytranslate[] = {     0,
  120.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  121.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  122.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  123.      2,     2,    61,     2,     2,     2,    48,    39,     2,    55,
  124.     57,    46,    44,    62,    45,    54,    47,     2,     2,     2,
  125.      2,     2,     2,     2,     2,     2,     2,    34,    58,     2,
  126.     32,     2,    33,     2,     2,     2,     2,     2,     2,     2,
  127.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  128.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  129.     56,     2,    64,    38,     2,     2,     2,     2,     2,     2,
  130.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  131.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  132.      2,     2,    63,    37,    59,    60,     2,     2,     2,     2,
  133.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  134.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  135.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  136.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  137.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  138.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  139.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  140.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  141.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  142.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  143.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  144.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  145.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  146.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  147.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  148.     26,    27,    28,    29,    30,    31,    35,    36,    40,    41,
  149.     42,    43,    49,    50,    51,    52,    53
  150. };
  151.  
  152. static const short yyrline[] = {     0,
  153.    176,   177,   184,   186,   186,   187,   189,   191,   192,   199,
  154.    205,   207,   209,   211,   213,   214,   215,   220,   226,   228,
  155.    229,   231,   236,   238,   239,   241,   246,   248,   249,   253,
  156.    255,   258,   260,   262,   264,   266,   268,   270,   274,   278,
  157.    281,   284,   287,   291,   293,   295,   297,   310,   312,   345,
  158.    349,   351,   354,   368,   370,   372,   374,   376,   378,   380,
  159.    382,   384,   386,   388,   390,   392,   394,   396,   398,   400,
  160.    402,   406,   455,   456,   458,   460,   462,   470,   482,   484,
  161.    486,   488,   490,   492,   497,   499,   503,   505,   508,   510,
  162.    511,   512,   519,   526,   531,   535,   537,   545,   548,   552,
  163.    554,   556,   564,   567,   569,   571,   580,   583,   587,   589,
  164.    597,   598,   599,   600,   604,   612,   613,   614,   617,   619,
  165.    622,   624,   627,   630,   638,   643,   644,   649,   654,   655,
  166.    661,   664,   669,   670,   674,   678,   686,   692,   694,   698,
  167.    700,   702,   708,   711,   718,   720,   725,   728,   733,   735,
  168.    737,   739,   747,   753,   755,   757,   759,   765,   771,   773,
  169.    775,   777,   779,   782,   787,   791,   794,   796,   798,   800,
  170.    803,   805,   808,   811,   814,   817,   821,   823,   826,   828,
  171.    832,   834,   836,   850,   856,   861,   865,   870,   871,   875,
  172.    878,   880,   889,   891,   896,   899,   903,   906,   910,   913,
  173.    916,   919,   923,   926,   930,   934,   936,   938,   940,   942,
  174.    944,   946,   948,   956,   958,   959,   962,   964,   967,   970,
  175.    979,   982,   985,   987,   991,   995,  1001,  1006,  1008,  1010,
  176.   1020,  1023,  1024,  1026,  1030,  1034,  1035,  1039,  1041,  1046,
  177.   1052,  1056,  1062,  1068,  1075,  1077,  1109,  1109,  1120,  1120,
  178.   1124,  1128,  1131,  1134,  1139,  1146,  1153,  1160,  1166,  1172,
  179.   1172,  1177,  1182,  1188,  1191,  1196,  1198,  1201,  1203,  1207,
  180.   1212,  1215,  1221,  1225,  1232,  1236,  1241,  1243,  1245,  1249,
  181.   1251,  1257,  1259,  1261,  1265,  1268,  1274,  1277,  1279,  1281,
  182.   1283,  1288,  1291
  183. };
  184.  
  185. static const char * const yytname[] = {     0,
  186. "error","$illegal.","IDENTIFIER","TYPENAME","SCSPEC","TYPESPEC","TYPE_QUAL","CONSTANT","STRING","ELLIPSIS",
  187. "SIZEOF","ENUM","STRUCT","UNION","IF","ELSE","WHILE","DO","FOR","SWITCH",
  188. "CASE","DEFAULT","BREAK","CONTINUE","RETURN","GOTO","ASM","TYPEOF","ALIGNOF","ATTRIBUTE",
  189. "ASSIGN","'='","'?'","':'","OROR","ANDAND","'|'","'^'","'&'","EQCOMPARE",
  190. "ARITHCOMPARE","LSHIFT","RSHIFT","'+'","'-'","'*'","'/'","'%'","UNARY","PLUSPLUS",
  191. "MINUSMINUS","HYPERUNARY","POINTSAT","'.'","'('","'['","')'","';'","'}'","'~'",
  192. "'!'","','","'{'","']'","program"
  193. };
  194.  
  195. static const short yyr1[] = {     0,
  196.     65,    65,    67,    66,    68,    66,    69,    69,    69,    70,
  197.     70,    70,    70,    70,    70,    70,    70,    72,    73,    71,
  198.     71,    74,    75,    71,    71,    76,    77,    71,    71,    78,
  199.     78,    79,    79,    79,    79,    79,    79,    79,    80,    81,
  200.     81,    82,    82,    83,    83,    83,    83,    83,    83,    83,
  201.     84,    84,    84,    85,    85,    85,    85,    85,    85,    85,
  202.     85,    85,    85,    85,    85,    85,    85,    85,    85,    85,
  203.     85,    86,    86,    86,    86,    86,    87,    86,    86,    86,
  204.     86,    86,    86,    86,    88,    88,    89,    89,    90,    90,
  205.     90,    90,    91,    92,    92,    92,    92,    93,    93,    94,
  206.     94,    94,    95,    95,    95,    95,    96,    96,    97,    97,
  207.     98,    98,    98,    98,    98,    99,    99,    99,   100,   100,
  208.    101,   101,   102,   102,   104,   103,   103,   106,   105,   105,
  209.    107,   107,   108,   108,   109,   109,   109,   110,   110,   110,
  210.    110,   110,   111,   111,   112,   112,   113,   113,   113,   113,
  211.    113,   113,   114,   114,   114,   114,   114,   115,   115,   115,
  212.    115,   115,   115,   117,   116,   116,   116,   118,   116,   116,
  213.    116,   119,   116,   120,   116,   116,   121,   121,   122,   122,
  214.    123,   123,   123,   124,   124,   124,   125,   125,   125,   126,
  215.    126,   126,   127,   127,   128,   128,   129,   129,   130,   130,
  216.    131,   131,   132,   132,   133,   133,   133,   133,   133,   133,
  217.    133,   133,   133,   134,   134,   134,   135,   135,   136,   137,
  218.    138,   138,   139,   139,   139,   139,   141,   140,   142,   142,
  219.    143,   142,   142,   144,   145,   142,   146,   147,   142,   148,
  220.    149,   150,   142,   151,   142,   152,   142,   153,   142,   142,
  221.    142,   142,   142,   142,   142,   142,   142,   142,   154,   142,
  222.    142,   155,   155,   156,   156,   157,   157,   158,   158,   159,
  223.    160,   160,   162,   161,   164,   163,   165,   165,   165,   166,
  224.    166,   167,   167,   167,   168,   168,   169,   169,   169,   169,
  225.    169,   170,   170
  226. };
  227.  
  228. static const short yyr2[] = {     0,
  229.      0,     1,     0,     2,     0,     3,     1,     1,     5,     3,
  230.      4,     4,     2,     2,     2,     2,     1,     0,     0,     7,
  231.      4,     0,     0,     7,     4,     0,     0,     6,     3,     1,
  232.      1,     1,     1,     1,     1,     1,     1,     1,     1,     0,
  233.      1,     1,     3,     1,     2,     2,     2,     4,     2,     4,
  234.      1,     4,     7,     1,     3,     3,     3,     3,     3,     3,
  235.      3,     3,     3,     3,     3,     3,     3,     3,     5,     3,
  236.      3,     1,     1,     1,     3,     3,     0,     4,     4,     4,
  237.      3,     3,     2,     2,     1,     2,     0,     1,     1,     1,
  238.      2,     2,     0,     4,     4,     2,     2,     2,     3,     0,
  239.      2,     2,     1,     1,     2,     2,     2,     3,     0,     2,
  240.      1,     1,     1,     4,     4,     1,     1,     1,     1,     3,
  241.      1,     3,     0,     4,     0,     6,     3,     0,     6,     3,
  242.      0,     6,     1,     3,     1,     4,     4,     1,     2,     3,
  243.      4,     1,     1,     3,     1,     1,     3,     3,     4,     3,
  244.      3,     1,     3,     4,     3,     3,     1,     3,     3,     3,
  245.      4,     3,     1,     0,     6,     4,     2,     0,     6,     4,
  246.      2,     0,     7,     0,     6,     2,     0,     1,     0,     1,
  247.      0,     3,     2,     3,     3,     1,     0,     1,     3,     2,
  248.      4,     2,     1,     3,     1,     3,     2,     2,     0,     1,
  249.      1,     2,     0,     2,     3,     3,     2,     3,     4,     3,
  250.      2,     3,     2,     1,     2,     2,     0,     1,     2,     0,
  251.      1,     2,     2,     5,     4,     4,     0,     6,     1,     2,
  252.      0,     4,     1,     0,     0,     7,     0,     0,     9,     0,
  253.      0,     0,    12,     0,     6,     0,     5,     0,     4,     2,
  254.      2,     2,     3,     6,     8,    10,    12,     3,     0,     4,
  255.      1,     0,     1,     0,     1,     0,     1,     1,     3,     4,
  256.      1,     3,     0,     2,     0,     2,     2,     2,     2,     2,
  257.      2,     0,     1,     3,     1,     3,     2,     2,     2,     2,
  258.      2,     1,     3
  259. };
  260.  
  261. static const short yydefact[] = {     3,
  262.      5,     0,     0,     0,   113,   104,   111,   103,     0,     0,
  263.      0,     0,     0,    17,     4,     8,     7,     0,    93,    93,
  264.    100,   112,     6,    15,    16,    30,    31,   174,   176,   181,
  265.    167,   181,   171,     0,     0,   163,   203,     0,     0,   121,
  266.      0,    14,     0,   106,   105,    13,     0,   100,    98,     0,
  267.    172,     0,   164,     0,   168,    85,     0,    72,   201,    73,
  268.      0,     0,    32,    34,    33,     0,    35,    36,     0,    37,
  269.     38,     0,     0,    39,    51,    54,    42,    44,    74,   199,
  270.    109,     0,   199,     0,     0,    10,     0,    29,     0,   275,
  271.      0,     0,   131,   152,   203,     0,     0,   119,     0,   145,
  272.    146,     0,     0,    99,   102,   116,   117,   101,   118,   195,
  273.    179,   193,     0,   186,   183,   166,    93,     0,    93,   181,
  274.    170,   181,    86,     0,     0,    47,     0,    49,    45,     0,
  275.      0,     0,     0,    46,   114,     0,     0,     0,   264,     0,
  276.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  277.      0,     0,     0,    83,    84,     0,     0,    40,     0,   203,
  278.    273,     0,   197,   200,   107,   115,   202,   109,   198,   204,
  279.    160,   159,   122,   123,     0,   158,     0,   162,     0,     0,
  280.     27,    88,     0,    93,    93,    90,     0,   130,     0,     0,
  281.     12,     0,    21,     0,   131,   275,     0,    11,    25,     0,
  282.      0,   180,     0,   179,   187,   182,   187,     0,     0,     9,
  283.      0,     0,    76,    75,   220,     0,     0,    43,    71,    70,
  284.    265,     0,    68,    67,    65,    66,    64,    63,    62,    60,
  285.     61,    55,    56,    57,    58,    59,    82,    81,     0,    41,
  286.      0,   207,     0,   211,     0,   213,     0,   273,     0,   110,
  287.    108,     0,     0,   292,   199,   199,   276,     0,   283,   285,
  288.      0,   161,   219,     0,    91,    92,    96,     0,    97,     0,
  289.      0,   128,   151,   147,   120,    19,   127,   148,   150,     0,
  290.     23,   196,   194,   175,     0,     0,   131,   184,   188,   185,
  291.    165,   169,    48,    50,   223,     0,    78,     0,    52,     0,
  292.     79,    80,   206,   205,     0,   274,     0,   212,   208,   210,
  293.      0,   124,   279,   157,   203,   273,   287,   288,   289,   203,
  294.    290,   291,   277,     0,   278,     0,     0,    28,   221,     0,
  295.      0,   123,     0,     0,     0,   125,   149,     0,   173,   192,
  296.      0,   190,     0,     0,    72,   113,     0,   234,   237,     0,
  297.      0,     0,     0,     0,     0,     0,     0,   262,   261,     0,
  298.      0,   217,     0,   229,   233,   214,   142,     0,   138,   143,
  299.    177,    69,   281,   280,   209,   207,   275,     0,   207,   284,
  300.    286,   293,   222,    94,    95,   135,     0,   133,   129,    20,
  301.      0,    24,   131,   189,   225,     0,     0,     0,   264,     0,
  302.      0,   248,   250,   251,   252,     0,     0,   263,     0,   259,
  303.    230,     0,     0,   226,   216,   215,   231,   139,     0,     0,
  304.      0,   156,   153,   155,     0,     0,     0,     0,   126,   191,
  305.      0,     0,     0,     0,     0,   246,     0,   253,   258,     0,
  306.      0,   224,     0,   140,     0,   144,    53,   154,     0,     0,
  307.    132,   134,   227,     0,   238,   240,   244,     0,   249,     0,
  308.    260,   232,   141,   136,   137,     0,   235,     0,   264,     0,
  309.    247,   266,     0,   228,     0,     0,     0,   245,     0,     0,
  310.    267,   268,   254,   236,     0,   241,     0,   266,     0,     0,
  311.      0,   264,     0,     0,   255,   269,   239,     0,   270,     0,
  312.      0,   242,   271,     0,   256,     0,     0,     0,   243,   257,
  313.    272,     0,     0,     0
  314. };
  315.  
  316. static const short yydefgoto[] = {   512,
  317.      1,     2,     3,    15,    16,    17,   194,   335,   200,   338,
  318.     92,   264,   360,    72,   361,   239,    74,    75,    76,    77,
  319.     78,   132,    79,   181,   182,    18,   183,   184,    49,   185,
  320.     80,   165,    21,   108,    97,    39,    93,    98,   391,    40,
  321.    334,   188,   387,   388,   370,   371,   174,   100,   317,   101,
  322.     22,   120,   122,   113,    50,   421,   203,    52,   118,   288,
  323.    289,   111,   112,    82,   163,    83,    84,   164,   363,   413,
  324.    186,   296,   328,   364,   365,   466,   366,   443,   397,   475,
  325.    398,   468,   469,   492,   506,   470,   458,   437,   441,   409,
  326.    222,   480,   481,   482,   504,   244,   245,   176,   177,   257,
  327.    306,   258,   259,   260,   261
  328. };
  329.  
  330. static const short yypact[] = {    53,
  331.     61,  1402,  1402,    84,-32768,-32768,-32768,-32768,    36,    39,
  332.     42,    48,    54,-32768,-32768,-32768,-32768,   108,     7,   133,
  333. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    33,-32768,
  334.     68,-32768,    86,   149,  1196,-32768,-32768,   108,   175,-32768,
  335.    375,-32768,   240,-32768,-32768,-32768,   108,-32768,   636,   253,
  336. -32768,   838,-32768,   842,-32768,-32768,    41,-32768,-32768,-32768,
  337.   1263,  1276,-32768,-32768,-32768,  1330,-32768,-32768,   276,-32768,
  338. -32768,  1330,   117,   118,-32768,-32768,  1464,   899,   178,    22,
  339. -32768,   177,   340,   303,   318,-32768,   240,-32768,   181,-32768,
  340.    252,   515,   217,-32768,-32768,   240,   184,-32768,   881,   245,
  341.    269,   190,   730,   636,-32768,-32768,-32768,-32768,-32768,   230,
  342.    206,-32768,   253,-32768,-32768,-32768,-32768,   214,   632,-32768,
  343. -32768,-32768,-32768,   234,   276,-32768,   276,-32768,-32768,   221,
  344.    237,   251,   281,-32768,-32768,  1330,  1330,  1330,  1330,  1330,
  345.   1330,  1330,  1330,  1330,  1330,  1330,  1330,  1330,  1330,  1330,
  346.   1330,  1330,  1330,-32768,-32768,   253,   253,  1330,  1330,-32768,
  347.     22,   896,-32768,   322,   358,-32768,-32768,-32768,-32768,-32768,
  348.    269,-32768,-32768,   323,   149,-32768,   698,-32768,   297,   325,
  349. -32768,   575,   486,   326,  1284,-32768,   335,   365,    45,   337,
  350. -32768,   240,-32768,   515,   217,-32768,   919,-32768,-32768,   515,
  351.   1330,   253,   353,   206,   314,-32768,   314,  1339,  1343,-32768,
  352.    347,   362,-32768,-32768,   363,   367,  1135,  1464,  1464,  1464,
  353. -32768,   395,  1398,  1492,  1503,  1513,   438,   873,   817,   719,
  354.    719,   380,   380,-32768,-32768,-32768,-32768,-32768,   382,   118,
  355.    376,   220,   389,-32768,   328,-32768,   378,-32768,   964,-32768,
  356.    358,    47,   390,-32768,   218,  1419,-32768,   392,   388,-32768,
  357.      9,-32768,-32768,    26,-32768,-32768,-32768,   240,-32768,   108,
  358.    397,-32768,   245,-32768,-32768,-32768,   421,-32768,-32768,   391,
  359. -32768,  1464,-32768,-32768,   401,  1330,   235,   399,-32768,   399,
  360. -32768,-32768,-32768,-32768,-32768,   547,-32768,   829,-32768,  1330,
  361. -32768,-32768,   322,-32768,   407,-32768,   408,-32768,-32768,-32768,
  362.    405,-32768,-32768,-32768,-32768,   122,   345,   269,-32768,-32768,
  363.    269,-32768,-32768,   404,-32768,   465,   251,-32768,-32768,   192,
  364.    209,    27,   467,   829,    26,-32768,-32768,    26,-32768,  1464,
  365.   1330,-32768,   314,   250,   442,   454,   441,-32768,-32768,   462,
  366.    463,  1330,   489,   466,   468,  1209,   253,   526,-32768,   500,
  367.    477,  1049,   608,-32768,   522,-32768,-32768,   412,  1464,-32768,
  368.    478,  1480,-32768,-32768,-32768,   110,-32768,   987,    77,-32768,
  369. -32768,-32768,-32768,-32768,-32768,   484,    31,-32768,-32768,-32768,
  370.    829,-32768,  1446,-32768,-32768,  1330,   487,  1110,  1330,  1330,
  371.    523,-32768,-32768,-32768,-32768,   505,   519,-32768,   528,-32768,
  372. -32768,   669,   525,-32768,-32768,-32768,-32768,-32768,   120,   745,
  373.    531,   345,-32768,-32768,   521,   152,   537,   467,-32768,-32768,
  374.    538,  1330,   579,   541,   543,-32768,  1110,-32768,-32768,   149,
  375.   1110,-32768,  1110,-32768,   768,-32768,-32768,-32768,   544,   105,
  376. -32768,-32768,-32768,   549,-32768,-32768,-32768,  1110,-32768,   236,
  377. -32768,-32768,-32768,-32768,-32768,  1110,-32768,   558,  1330,  1110,
  378. -32768,   595,   556,-32768,  1110,  1330,   557,-32768,   563,    13,
  379.    559,-32768,-32768,-32768,   565,-32768,  1330,   595,   562,   595,
  380.    566,  1330,   583,    17,-32768,-32768,-32768,   594,-32768,   149,
  381.    597,-32768,   178,   114,-32768,  1110,   598,   149,-32768,-32768,
  382.    178,   657,   661,-32768
  383. };
  384.  
  385. static const short yypgoto[] = {-32768,
  386. -32768,-32768,-32768,   659,-32768,-32768,-32768,-32768,-32768,-32768,
  387. -32768,-32768,    -6,-32768,   -33,-32768,   506,   373,   -47,    57,
  388. -32768,-32768,   -34,  -131,   369,    40,  -145,     4,   626,     6,
  389.    -19,   507,     3,  -139,   411,   -30,   -77,   -72,-32768,-32768,
  390. -32768,  -179,-32768,   248,  -310,   313,   -32,   -62,   306,   -17,
  391.    -31,-32768,-32768,-32768,-32768,-32768,   479,    -4,-32768,   490,
  392.    342,   587,   504,   -40,   -70,    10,   -85,  -147,   354,-32768,
  393.   -171,-32768,  -107,  -112,-32768,-32768,  -322,-32768,-32768,-32768,
  394. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  395.   -368,   219,-32768,   227,-32768,   461,-32768,  -164,-32768,-32768,
  396. -32768,   473,-32768,   398,   295
  397. };
  398.  
  399.  
  400. #define    YYLAST        1561
  401.  
  402.  
  403. static const short yytable[] = {    57,
  404.     41,    73,    29,    31,    33,    19,    19,    20,    20,   189,
  405.     99,   266,   169,   243,   173,   277,   102,   109,   129,   216,
  406.     85,   195,    48,   389,   134,   250,   327,    54,   133,   103,
  407.    434,   278,   117,   190,   117,   131,   265,    81,    26,    27,
  408.    416,    26,    27,   110,    26,    27,   488,    36,    94,   123,
  409.    500,   170,    -1,    89,    81,   123,    81,   179,    43,    47,
  410.     -2,   119,   276,   119,    42,   325,   171,   160,   281,   489,
  411.    326,    81,   109,   501,   242,   433,   161,   162,    85,    36,
  412.    429,    90,    91,   170,   211,   168,   212,   427,   215,   416,
  413.     95,   131,   428,   131,   303,    51,   195,   124,    28,    96,
  414.    477,    30,    34,   312,    32,   221,   110,   342,    35,   446,
  415.     36,   250,    36,   314,   459,   208,   170,   209,   461,   275,
  416.    462,   168,   320,   498,    36,   241,   273,    81,   247,    81,
  417.     53,   316,   162,   109,   446,   471,     5,    44,     7,    45,
  418.    252,    24,    25,   474,     9,    10,    11,   478,    55,   237,
  419.    238,   329,   484,    37,   254,   315,   205,    56,   207,   449,
  420.     13,   465,    38,   280,   316,   162,   326,   320,   243,   299,
  421.    507,   171,   287,   135,   287,   508,   316,   162,   444,   136,
  422.    255,   445,   256,   509,   319,   322,   123,    48,   117,   117,
  423.     46,   415,   218,   219,   220,   110,   223,   224,   225,   226,
  424.    227,   228,   229,   230,   231,   232,   233,   234,   235,   236,
  425.     81,    81,   423,   430,   383,   311,   265,   119,   119,   109,
  426.     36,   314,   329,   268,   270,   329,   170,   390,   303,   376,
  427.    392,   303,    86,   166,   379,   175,    87,   318,   321,   331,
  428.    415,   191,    36,    94,   123,   192,   187,   198,   255,   384,
  429.    256,    87,   332,   192,    58,    26,    27,   282,    48,    60,
  430.     56,   201,    61,   315,   187,   160,   385,   202,   341,   472,
  431.     87,   206,   316,   162,   161,   162,   130,   213,    58,     5,
  432.     62,     7,    59,    60,    56,    95,    61,     9,    10,    11,
  433.     63,   210,   473,   214,    96,    64,    65,    66,    85,   196,
  434.    197,    67,    68,    13,    62,    36,    69,   263,   395,   170,
  435.    287,    70,    71,   215,    63,   178,    36,    94,   401,    64,
  436.     65,    66,   406,    90,    91,    67,    68,   255,   305,   256,
  437.     69,     5,     6,     7,     8,    70,    71,   217,   -77,     9,
  438.     10,    11,   340,     5,   425,     7,   167,   286,    37,    89,
  439.    407,     9,    10,    11,   369,    13,   372,    38,   171,    95,
  440.    262,   171,   431,   106,   107,   221,   435,    13,    96,     9,
  441.     10,    11,    90,    91,   172,    88,   248,   249,   -26,   -26,
  442.    -26,   -26,   263,   267,  -282,   160,   -26,   -26,   -26,   271,
  443.    369,   196,   197,   274,   161,   162,   272,   393,   454,   377,
  444.    378,    89,   -26,   293,  -123,   460,  -123,     5,     6,     7,
  445.      8,   284,   367,   380,    58,     9,    10,    11,   294,    60,
  446.     56,   295,    61,   297,   369,   151,   152,   153,   300,    90,
  447.     91,    13,  -123,   126,   128,   221,  -123,   -26,   301,   302,
  448.     62,   308,   485,   248,   249,   304,   313,   369,   323,   324,
  449.     63,   333,   336,   493,   337,    64,    65,    66,   221,   339,
  450.    343,    67,    68,   373,   374,   503,    69,   382,   375,   386,
  451.    418,    70,    71,   511,   368,   -30,   369,   145,   146,   147,
  452.    148,   149,   150,   151,   152,   153,   180,   -31,   -89,   -89,
  453.    -89,   -89,   -89,   -89,   -89,   396,   -89,   -89,   -89,   -89,
  454.    -89,   369,   -89,   -89,   -89,   -89,   -89,   -89,   -89,   -89,
  455.    -89,   -89,   -89,   -89,   -89,   180,   399,   400,     5,     6,
  456.      7,     8,   402,   403,   -89,   404,     9,    10,    11,   -89,
  457.    -89,   -89,   408,   410,   411,   -89,   -89,   417,   426,   420,
  458.    -89,   432,    13,   -89,   -89,   -89,   -89,   344,   -89,   345,
  459.    346,     6,     7,     8,    60,    56,   436,    61,     9,    10,
  460.     11,   347,   438,   348,   349,   350,   351,   352,   353,   354,
  461.    355,   356,   357,   358,    13,    62,   439,   -87,     5,     6,
  462.      7,     8,   440,   442,   448,    63,     9,    10,    11,   447,
  463.     64,    65,    66,   451,   453,   455,    67,    68,   456,   457,
  464.    464,    69,    13,   479,   359,   467,    70,    71,   180,   215,
  465.    345,    27,   476,   483,   486,    60,    56,   487,    61,   495,
  466.    490,   491,   347,   497,   348,   349,   350,   351,   352,   353,
  467.    354,   355,   356,   357,   358,     5,    62,     7,   167,   499,
  468.    105,   106,   107,     9,    10,    11,    63,     9,    10,    11,
  469.    502,    64,    65,    66,   505,   510,   513,    67,    68,    13,
  470.    514,    23,    69,   240,   362,   359,   414,    70,    71,   180,
  471.    215,   345,    27,   104,   251,   452,    60,    56,   330,    61,
  472.    419,   422,   285,   347,   394,   348,   349,   350,   351,   352,
  473.    353,   354,   355,   356,   357,   358,   290,    62,   253,   204,
  474.    254,     5,     6,     7,     8,   283,   494,    63,   309,     9,
  475.     10,    11,    64,    65,    66,   412,   496,   307,    67,    68,
  476.    450,   381,     0,    69,     0,    13,   359,  -218,    70,    71,
  477.    199,   215,     0,   -22,   -22,   -22,   -22,     0,     0,     0,
  478.      0,   -22,   -22,   -22,     0,   367,     0,    58,     0,     0,
  479.      0,     0,    60,    56,  -282,    61,    89,   -22,     0,  -123,
  480.      0,  -123,   149,   150,   151,   152,   153,     0,   367,     0,
  481.     58,     0,     0,    62,     0,    60,    56,     0,    61,     0,
  482.      0,     0,     0,    63,    90,    91,     0,  -123,    64,    65,
  483.     66,  -123,   -22,     0,    67,    68,    62,     0,     0,    69,
  484.      0,     0,     0,  -178,    70,    71,    63,   368,     0,     0,
  485.      0,    64,    65,    66,     0,     0,     0,    67,    68,     0,
  486.      0,     0,    69,     0,     0,     0,   463,    70,    71,   367,
  487.    368,    58,     0,     0,     0,     0,    60,    56,   114,    61,
  488.      0,     5,   114,     7,    59,     5,     0,     7,    59,     9,
  489.     10,    11,     0,     9,    10,    11,     0,    62,   147,   148,
  490.    149,   150,   151,   152,   153,    13,     0,    63,     0,    13,
  491.      0,     0,    64,    65,    66,     0,     0,     0,    67,    68,
  492.      0,   193,     0,    69,   -18,   -18,   -18,   -18,    70,    71,
  493.      0,   368,   -18,   -18,   -18,   115,   116,     0,    58,   115,
  494.    121,     0,     0,    60,    56,     0,    61,    89,   -18,     0,
  495.   -123,     0,  -123,   146,   147,   148,   149,   150,   151,   152,
  496.    153,    58,     0,     0,    62,     0,    60,    56,     0,    61,
  497.      0,     0,     0,     0,    63,     0,     0,     0,  -123,    64,
  498.     65,    66,  -123,   -18,     0,    67,    68,    62,   154,   155,
  499.     69,   156,   157,   158,   159,    70,    71,    63,     0,   246,
  500.      0,     0,    64,    65,    66,     0,    58,     0,    67,    68,
  501.      0,    60,    56,    69,    61,     0,     0,     0,    70,    71,
  502.      0,     0,   279,     0,     0,     0,     0,     0,     0,    58,
  503.      0,     0,    62,     0,    60,    56,     0,    61,     0,     0,
  504.      0,     0,    63,     0,     0,     0,     0,    64,    65,    66,
  505.      0,     0,     0,    67,    68,    62,     0,     0,    69,     0,
  506.      0,     0,     0,    70,    71,    63,     0,   310,     0,     0,
  507.     64,    65,    66,     0,     0,     0,    67,    68,     0,     0,
  508.      0,    69,     0,     0,     0,     0,    70,    71,     0,     0,
  509.    424,   345,   346,     6,     7,     8,    60,    56,     0,    61,
  510.      9,    10,    11,   347,     0,   348,   349,   350,   351,   352,
  511.    353,   354,   355,   356,   357,   358,    13,    62,     0,     0,
  512.      0,     0,     0,     0,     0,     0,     0,    63,     0,     0,
  513.      0,     0,    64,    65,    66,     0,     0,     0,    67,    68,
  514.      0,     0,     0,    69,     0,     0,   359,     0,    70,    71,
  515.      0,   215,   345,    27,     0,     0,     0,    60,    56,     0,
  516.     61,     0,     0,     0,   347,     0,   348,   349,   350,   351,
  517.    352,   353,   354,   355,   356,   357,   358,    58,    62,     0,
  518.      0,     0,    60,    56,     0,    61,     0,     0,    63,     0,
  519.      0,     0,     0,    64,    65,    66,     0,     0,     0,    67,
  520.     68,     0,     0,    62,    69,     0,     0,   359,     0,    70,
  521.     71,     0,   215,    63,     0,     0,     0,     0,    64,    65,
  522.     66,     0,     0,     0,    67,    68,     0,     0,     0,    69,
  523.      0,     0,     0,     0,    70,    71,     0,   298,    58,     5,
  524.      0,     7,    59,    60,    56,     0,    61,     9,    10,    11,
  525.      0,    58,     0,     0,     0,     0,    60,    56,     0,    61,
  526.      0,     0,     0,    13,    62,     0,     0,     0,     0,     0,
  527.      0,     0,     0,     0,    63,     0,     0,    62,     0,    64,
  528.     65,    66,     0,     0,     0,    67,    68,    63,     0,     0,
  529.     69,     0,    64,    65,    66,    70,    71,     0,    67,    68,
  530.      0,     0,     0,    69,     0,    58,   405,     0,    70,    71,
  531.     60,    56,     0,    61,     0,     0,     0,     0,    58,     0,
  532.      0,     0,     0,    60,    56,     0,    61,     5,    44,     7,
  533.     45,    62,     0,     0,     0,     9,    10,    11,     0,     0,
  534.      0,    63,     0,     0,    62,     0,    64,    65,    66,     0,
  535.      0,    13,    67,    68,    63,     0,     0,   125,     0,    64,
  536.     65,    66,    70,    71,     0,    67,    68,     0,     0,     0,
  537.    127,     0,    58,     0,     0,    70,    71,    60,    56,   114,
  538.     61,   269,     5,   114,     7,    59,     5,     0,     7,    59,
  539.      9,    10,    11,     0,     9,    10,    11,     0,    62,     0,
  540.      0,     0,     0,     0,     0,     0,    13,     0,    63,     0,
  541.     13,     0,     0,    64,    65,    66,     0,     0,     0,    67,
  542.     68,     0,     0,     0,    69,     0,     0,     0,     0,    70,
  543.     71,     0,     0,     0,     0,     0,   115,   291,     0,     0,
  544.    115,   292,     4,     0,   -93,     5,     6,     7,     8,     0,
  545.      0,     0,     0,     9,    10,    11,     0,     0,     0,     0,
  546.      0,    36,     5,    44,     7,    45,     0,     0,    12,    13,
  547.      9,    10,    11,   141,   142,   143,   144,   145,   146,   147,
  548.    148,   149,   150,   151,   152,   153,    13,   -93,     0,     0,
  549.      0,     0,     0,     0,     0,     0,   -93,     0,     0,    14,
  550.      0,     0,     0,     0,   320,     0,     0,     0,     0,     0,
  551.      0,     0,     0,   316,   162,   187,   137,   138,   139,     0,
  552.    140,   141,   142,   143,   144,   145,   146,   147,   148,   149,
  553.    150,   151,   152,   153,   137,   138,   139,     0,   140,   141,
  554.    142,   143,   144,   145,   146,   147,   148,   149,   150,   151,
  555.    152,   153,   139,     0,   140,   141,   142,   143,   144,   145,
  556.    146,   147,   148,   149,   150,   151,   152,   153,   142,   143,
  557.    144,   145,   146,   147,   148,   149,   150,   151,   152,   153,
  558.    143,   144,   145,   146,   147,   148,   149,   150,   151,   152,
  559.    153,   144,   145,   146,   147,   148,   149,   150,   151,   152,
  560.    153
  561. };
  562.  
  563. static const short yycheck[] = {    34,
  564.     18,    35,     9,    10,    11,     2,     3,     2,     3,    95,
  565.     43,   183,    83,   161,    87,   195,    47,    49,    66,   132,
  566.     38,    99,    20,   334,    72,   165,     1,    32,    69,    47,
  567.    399,   196,    52,    96,    54,    69,   182,    35,     3,     4,
  568.    363,     3,     4,    50,     3,     4,    34,     3,     4,     9,
  569.     34,     7,     0,    27,    52,     9,    54,    91,    19,    20,
  570.      0,    52,   194,    54,    58,    57,    84,    46,   200,    57,
  571.     62,    69,   104,    57,   160,   398,    55,    56,    96,     3,
  572.    391,    55,    56,     7,   125,    83,   127,    57,    63,   412,
  573.     46,   125,    62,   127,   242,    63,   174,    57,    63,    55,
  574.    469,    63,    55,    57,    63,   139,   113,   287,    55,   420,
  575.      3,   251,     3,     4,   437,   120,     7,   122,   441,   192,
  576.    443,   119,    46,   492,     3,   159,   189,   125,   162,   127,
  577.     63,    55,    56,   165,   445,   458,     4,     5,     6,     7,
  578.    175,    58,    59,   466,    12,    13,    14,   470,    63,   156,
  579.    157,   264,   475,    46,     3,    46,   117,     9,   119,     8,
  580.     28,    57,    55,   197,    55,    56,    62,    46,   316,   217,
  581.     57,   189,   205,    57,   207,    62,    55,    56,    59,    62,
  582.    177,    62,   177,   506,   255,   256,     9,   185,   208,   209,
  583.     58,   363,   136,   137,   138,   202,   140,   141,   142,   143,
  584.    144,   145,   146,   147,   148,   149,   150,   151,   152,   153,
  585.    208,   209,   377,   393,   327,   249,   362,   208,   209,   251,
  586.      3,     4,   335,   184,   185,   338,     7,   335,   376,   315,
  587.    338,   379,    58,    57,   320,    55,    62,   255,   256,   270,
  588.    412,    58,     3,     4,     9,    62,    30,    58,   245,    58,
  589.    245,    62,   270,    62,     3,     3,     4,   201,   256,     8,
  590.      9,    32,    11,    46,    30,    46,    58,    62,    34,    34,
  591.     62,    58,    55,    56,    55,    56,     1,    57,     3,     4,
  592.     29,     6,     7,     8,     9,    46,    11,    12,    13,    14,
  593.     39,    58,    57,    57,    55,    44,    45,    46,   316,    55,
  594.     56,    50,    51,    28,    29,     3,    55,    58,    59,     7,
  595.    343,    60,    61,    63,    39,    64,     3,     4,   352,    44,
  596.     45,    46,   356,    55,    56,    50,    51,   324,     1,   324,
  597.     55,     4,     5,     6,     7,    60,    61,    57,    63,    12,
  598.     13,    14,   286,     4,   378,     6,     7,    34,    46,    27,
  599.    357,    12,    13,    14,   298,    28,   300,    55,   376,    46,
  600.     64,   379,   396,     6,     7,   399,   400,    28,    55,    12,
  601.     13,    14,    55,    56,    57,     1,    55,    56,     4,     5,
  602.      6,     7,    58,    58,    57,    46,    12,    13,    14,    55,
  603.    334,    55,    56,    57,    55,    56,    32,   341,   432,    55,
  604.     56,    27,    28,    57,    30,   440,    32,     4,     5,     6,
  605.      7,    59,     1,    10,     3,    12,    13,    14,    57,     8,
  606.      9,    59,    11,    57,   368,    46,    47,    48,    34,    55,
  607.     56,    28,    58,    61,    62,   469,    62,    63,    57,    64,
  608.     29,    64,   476,    55,    56,    57,    57,   391,    57,    62,
  609.     39,    55,    32,   487,    64,    44,    45,    46,   492,    59,
  610.     62,    50,    51,    57,    57,   500,    55,     3,    64,     3,
  611.     59,    60,    61,   508,    63,    34,   420,    40,    41,    42,
  612.     43,    44,    45,    46,    47,    48,     1,    34,     3,     4,
  613.      5,     6,     7,     8,     9,    55,    11,    12,    13,    14,
  614.     15,   445,    17,    18,    19,    20,    21,    22,    23,    24,
  615.     25,    26,    27,    28,    29,     1,    55,    55,     4,     5,
  616.      6,     7,    34,    58,    39,    58,    12,    13,    14,    44,
  617.     45,    46,     7,    34,    58,    50,    51,    16,    55,    62,
  618.     55,    55,    28,    58,    59,    60,    61,     1,    63,     3,
  619.      4,     5,     6,     7,     8,     9,    34,    11,    12,    13,
  620.     14,    15,    58,    17,    18,    19,    20,    21,    22,    23,
  621.     24,    25,    26,    27,    28,    29,    58,    63,     4,     5,
  622.      6,     7,    55,    59,    64,    39,    12,    13,    14,    59,
  623.     44,    45,    46,    57,    57,    17,    50,    51,    58,    57,
  624.     57,    55,    28,     9,    58,    57,    60,    61,     1,    63,
  625.      3,     4,    55,    58,    58,     8,     9,    55,    11,    58,
  626.     62,    57,    15,    58,    17,    18,    19,    20,    21,    22,
  627.     23,    24,    25,    26,    27,     4,    29,     6,     7,    57,
  628.      5,     6,     7,    12,    13,    14,    39,    12,    13,    14,
  629.     57,    44,    45,    46,    58,    58,     0,    50,    51,    28,
  630.      0,     3,    55,   158,   296,    58,    59,    60,    61,     1,
  631.     63,     3,     4,    48,   168,   428,     8,     9,   268,    11,
  632.    368,   376,   204,    15,   343,    17,    18,    19,    20,    21,
  633.     22,    23,    24,    25,    26,    27,   207,    29,     1,   113,
  634.      3,     4,     5,     6,     7,   202,   488,    39,   248,    12,
  635.     13,    14,    44,    45,    46,   362,   490,   245,    50,    51,
  636.    426,   324,    -1,    55,    -1,    28,    58,    59,    60,    61,
  637.      1,    63,    -1,     4,     5,     6,     7,    -1,    -1,    -1,
  638.     -1,    12,    13,    14,    -1,     1,    -1,     3,    -1,    -1,
  639.     -1,    -1,     8,     9,    57,    11,    27,    28,    -1,    30,
  640.     -1,    32,    44,    45,    46,    47,    48,    -1,     1,    -1,
  641.      3,    -1,    -1,    29,    -1,     8,     9,    -1,    11,    -1,
  642.     -1,    -1,    -1,    39,    55,    56,    -1,    58,    44,    45,
  643.     46,    62,    63,    -1,    50,    51,    29,    -1,    -1,    55,
  644.     -1,    -1,    -1,    59,    60,    61,    39,    63,    -1,    -1,
  645.     -1,    44,    45,    46,    -1,    -1,    -1,    50,    51,    -1,
  646.     -1,    -1,    55,    -1,    -1,    -1,    59,    60,    61,     1,
  647.     63,     3,    -1,    -1,    -1,    -1,     8,     9,     1,    11,
  648.     -1,     4,     1,     6,     7,     4,    -1,     6,     7,    12,
  649.     13,    14,    -1,    12,    13,    14,    -1,    29,    42,    43,
  650.     44,    45,    46,    47,    48,    28,    -1,    39,    -1,    28,
  651.     -1,    -1,    44,    45,    46,    -1,    -1,    -1,    50,    51,
  652.     -1,     1,    -1,    55,     4,     5,     6,     7,    60,    61,
  653.     -1,    63,    12,    13,    14,    58,    59,    -1,     3,    58,
  654.     59,    -1,    -1,     8,     9,    -1,    11,    27,    28,    -1,
  655.     30,    -1,    32,    41,    42,    43,    44,    45,    46,    47,
  656.     48,     3,    -1,    -1,    29,    -1,     8,     9,    -1,    11,
  657.     -1,    -1,    -1,    -1,    39,    -1,    -1,    -1,    58,    44,
  658.     45,    46,    62,    63,    -1,    50,    51,    29,    50,    51,
  659.     55,    53,    54,    55,    56,    60,    61,    39,    -1,    64,
  660.     -1,    -1,    44,    45,    46,    -1,     3,    -1,    50,    51,
  661.     -1,     8,     9,    55,    11,    -1,    -1,    -1,    60,    61,
  662.     -1,    -1,    64,    -1,    -1,    -1,    -1,    -1,    -1,     3,
  663.     -1,    -1,    29,    -1,     8,     9,    -1,    11,    -1,    -1,
  664.     -1,    -1,    39,    -1,    -1,    -1,    -1,    44,    45,    46,
  665.     -1,    -1,    -1,    50,    51,    29,    -1,    -1,    55,    -1,
  666.     -1,    -1,    -1,    60,    61,    39,    -1,    64,    -1,    -1,
  667.     44,    45,    46,    -1,    -1,    -1,    50,    51,    -1,    -1,
  668.     -1,    55,    -1,    -1,    -1,    -1,    60,    61,    -1,    -1,
  669.     64,     3,     4,     5,     6,     7,     8,     9,    -1,    11,
  670.     12,    13,    14,    15,    -1,    17,    18,    19,    20,    21,
  671.     22,    23,    24,    25,    26,    27,    28,    29,    -1,    -1,
  672.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    39,    -1,    -1,
  673.     -1,    -1,    44,    45,    46,    -1,    -1,    -1,    50,    51,
  674.     -1,    -1,    -1,    55,    -1,    -1,    58,    -1,    60,    61,
  675.     -1,    63,     3,     4,    -1,    -1,    -1,     8,     9,    -1,
  676.     11,    -1,    -1,    -1,    15,    -1,    17,    18,    19,    20,
  677.     21,    22,    23,    24,    25,    26,    27,     3,    29,    -1,
  678.     -1,    -1,     8,     9,    -1,    11,    -1,    -1,    39,    -1,
  679.     -1,    -1,    -1,    44,    45,    46,    -1,    -1,    -1,    50,
  680.     51,    -1,    -1,    29,    55,    -1,    -1,    58,    -1,    60,
  681.     61,    -1,    63,    39,    -1,    -1,    -1,    -1,    44,    45,
  682.     46,    -1,    -1,    -1,    50,    51,    -1,    -1,    -1,    55,
  683.     -1,    -1,    -1,    -1,    60,    61,    -1,    63,     3,     4,
  684.     -1,     6,     7,     8,     9,    -1,    11,    12,    13,    14,
  685.     -1,     3,    -1,    -1,    -1,    -1,     8,     9,    -1,    11,
  686.     -1,    -1,    -1,    28,    29,    -1,    -1,    -1,    -1,    -1,
  687.     -1,    -1,    -1,    -1,    39,    -1,    -1,    29,    -1,    44,
  688.     45,    46,    -1,    -1,    -1,    50,    51,    39,    -1,    -1,
  689.     55,    -1,    44,    45,    46,    60,    61,    -1,    50,    51,
  690.     -1,    -1,    -1,    55,    -1,     3,    58,    -1,    60,    61,
  691.      8,     9,    -1,    11,    -1,    -1,    -1,    -1,     3,    -1,
  692.     -1,    -1,    -1,     8,     9,    -1,    11,     4,     5,     6,
  693.      7,    29,    -1,    -1,    -1,    12,    13,    14,    -1,    -1,
  694.     -1,    39,    -1,    -1,    29,    -1,    44,    45,    46,    -1,
  695.     -1,    28,    50,    51,    39,    -1,    -1,    55,    -1,    44,
  696.     45,    46,    60,    61,    -1,    50,    51,    -1,    -1,    -1,
  697.     55,    -1,     3,    -1,    -1,    60,    61,     8,     9,     1,
  698.     11,    58,     4,     1,     6,     7,     4,    -1,     6,     7,
  699.     12,    13,    14,    -1,    12,    13,    14,    -1,    29,    -1,
  700.     -1,    -1,    -1,    -1,    -1,    -1,    28,    -1,    39,    -1,
  701.     28,    -1,    -1,    44,    45,    46,    -1,    -1,    -1,    50,
  702.     51,    -1,    -1,    -1,    55,    -1,    -1,    -1,    -1,    60,
  703.     61,    -1,    -1,    -1,    -1,    -1,    58,    59,    -1,    -1,
  704.     58,    59,     1,    -1,     3,     4,     5,     6,     7,    -1,
  705.     -1,    -1,    -1,    12,    13,    14,    -1,    -1,    -1,    -1,
  706.     -1,     3,     4,     5,     6,     7,    -1,    -1,    27,    28,
  707.     12,    13,    14,    36,    37,    38,    39,    40,    41,    42,
  708.     43,    44,    45,    46,    47,    48,    28,    46,    -1,    -1,
  709.     -1,    -1,    -1,    -1,    -1,    -1,    55,    -1,    -1,    58,
  710.     -1,    -1,    -1,    -1,    46,    -1,    -1,    -1,    -1,    -1,
  711.     -1,    -1,    -1,    55,    56,    30,    31,    32,    33,    -1,
  712.     35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
  713.     45,    46,    47,    48,    31,    32,    33,    -1,    35,    36,
  714.     37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
  715.     47,    48,    33,    -1,    35,    36,    37,    38,    39,    40,
  716.     41,    42,    43,    44,    45,    46,    47,    48,    37,    38,
  717.     39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
  718.     38,    39,    40,    41,    42,    43,    44,    45,    46,    47,
  719.     48,    39,    40,    41,    42,    43,    44,    45,    46,    47,
  720.     48
  721. };
  722. #define YYPURE 1
  723.  
  724. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  725. #line 3 "bison.simple"
  726.  
  727. /* Skeleton output parser for bison,
  728.    Copyright (C) 1984 Bob Corbett and Richard Stallman
  729.  
  730.    This program is free software; you can redistribute it and/or modify
  731.    it under the terms of the GNU General Public License as published by
  732.    the Free Software Foundation; either version 1, or (at your option)
  733.    any later version.
  734.  
  735.    This program is distributed in the hope that it will be useful,
  736.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  737.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  738.    GNU General Public License for more details.
  739.  
  740.    You should have received a copy of the GNU General Public License
  741.    along with this program; if not, write to the Free Software
  742.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  743.  
  744.  
  745. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__)
  746. #include <alloca.h>
  747. #endif
  748.  
  749. /* This is the parser code that is written into each bison parser
  750.   when the %semantic_parser declaration is not specified in the grammar.
  751.   It was written by Richard Stallman by simplifying the hairy parser
  752.   used when %semantic_parser is specified.  */
  753.  
  754. /* Note: there must be only one dollar sign in this file.
  755.    It is replaced by the list of actions, each action
  756.    as one case of the switch.  */
  757.  
  758. #define yyerrok        (yyerrstatus = 0)
  759. #define yyclearin    (yychar = YYEMPTY)
  760. #define YYEMPTY        -2
  761. #define YYEOF        0
  762. #define YYFAIL        goto yyerrlab;
  763. #define YYACCEPT    return(0)
  764. #define YYABORT     return(1)
  765. #define YYERROR        goto yyerrlab
  766.  
  767. #define YYTERROR    1
  768. #define YYERRCODE    256
  769.  
  770. #ifndef YYIMPURE
  771. #define YYLEX        yylex()
  772. #endif
  773.  
  774. #ifndef YYPURE
  775. #define YYLEX        yylex(&yylval, &yylloc)
  776. #endif
  777.  
  778. /* If nonreentrant, generate the variables here */
  779.  
  780. #ifndef YYIMPURE
  781.  
  782. int    yychar;            /*  the lookahead symbol        */
  783. YYSTYPE    yylval;            /*  the semantic value of the        */
  784.                 /*  lookahead symbol            */
  785.  
  786. YYLTYPE yylloc;            /*  location data for the lookahead    */
  787.                 /*  symbol                */
  788.  
  789. int yynerrs;            /*  number of parse errors so far       */
  790. #endif  /* YYIMPURE */
  791.  
  792. #if YYDEBUG != 0
  793. int yydebug;            /*  nonzero means print parse trace    */
  794. /* Since this is uninitialized, it does not stop multiple parsers
  795.    from coexisting.  */
  796. #endif
  797.  
  798. /*  YYMAXDEPTH indicates the initial size of the parser's stacks    */
  799.  
  800. #ifndef    YYMAXDEPTH
  801. #define YYMAXDEPTH 200
  802. #endif
  803.  
  804. /*  YYMAXLIMIT is the maximum size the stacks can grow to
  805.     (effective only if the built-in stack extension method is used).  */
  806.  
  807. #ifndef YYMAXLIMIT
  808. #define YYMAXLIMIT 10000
  809. #endif
  810.  
  811.  
  812. #line 90 "bison.simple"
  813. int
  814. yyparse()
  815. {
  816.   register int yystate;
  817.   register int yyn;
  818.   register short *yyssp;
  819.   register YYSTYPE *yyvsp;
  820.   YYLTYPE *yylsp;
  821.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  822.   int yychar1;        /*  lookahead token as an internal (translated) token number */
  823.  
  824.   short    yyssa[YYMAXDEPTH];    /*  the state stack            */
  825.   YYSTYPE yyvsa[YYMAXDEPTH];    /*  the semantic value stack        */
  826.   YYLTYPE yylsa[YYMAXDEPTH];    /*  the location stack            */
  827.  
  828.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  829.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  830.   YYLTYPE *yyls = yylsa;
  831.  
  832.   int yymaxdepth = YYMAXDEPTH;
  833.  
  834. #ifndef YYPURE
  835.   int yychar;
  836.   YYSTYPE yylval;
  837.   YYLTYPE yylloc;
  838.   int yynerrs;
  839. #endif
  840.  
  841.   YYSTYPE yyval;        /*  the variable used to return        */
  842.                 /*  semantic values from the action    */
  843.                 /*  routines                */
  844.  
  845.   int yylen;
  846.  
  847. #if YYDEBUG != 0
  848.   if (yydebug)
  849.     fprintf(stderr, "Starting parse\n");
  850. #endif
  851.  
  852.   yystate = 0;
  853.   yyerrstatus = 0;
  854.   yynerrs = 0;
  855.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  856.  
  857.   /* Initialize stack pointers.
  858.      Waste one element of value and location stack
  859.      so that they stay on the same level as the state stack.  */
  860.  
  861.   yyssp = yyss - 1;
  862.   yyvsp = yyvs;
  863.   yylsp = yyls;
  864.  
  865. /* Push a new state, which is found in  yystate  .  */
  866. /* In all cases, when you get here, the value and location stacks
  867.    have just been pushed. so pushing a state here evens the stacks.  */
  868. yynewstate:
  869.  
  870.   *++yyssp = yystate;
  871.  
  872.   if (yyssp >= yyss + yymaxdepth - 1)
  873.     {
  874.       /* Give user a chance to reallocate the stack */
  875.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  876.       YYSTYPE *yyvs1 = yyvs;
  877.       YYLTYPE *yyls1 = yyls;
  878.       short *yyss1 = yyss;
  879.  
  880.       /* Get the current used size of the three stacks, in elements.  */
  881.       int size = yyssp - yyss + 1;
  882.  
  883. #ifdef yyoverflow
  884.       /* Each stack pointer address is followed by the size of
  885.      the data in use in that stack, in bytes.  */
  886.       yyoverflow("parser stack overflow",
  887.          &yyss1, size * sizeof (*yyssp),
  888.          &yyvs1, size * sizeof (*yyvsp),
  889.          &yyls1, size * sizeof (*yylsp),
  890.          &yymaxdepth);
  891.  
  892.       yyss = yyss1; yyvs = yyvs1; yyls = yyls1;
  893. #else /* no yyoverflow */
  894.       /* Extend the stack our own way.  */
  895.       if (yymaxdepth >= YYMAXLIMIT)
  896.     yyerror("parser stack overflow");
  897.       yymaxdepth *= 2;
  898.       if (yymaxdepth > YYMAXLIMIT)
  899.     yymaxdepth = YYMAXLIMIT;
  900.       yyss = (short *) alloca (yymaxdepth * sizeof (*yyssp));
  901.       bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  902.       yyvs = (YYSTYPE *) alloca (yymaxdepth * sizeof (*yyvsp));
  903.       bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  904. #ifdef YYLSP_NEEDED
  905.       yyls = (YYLTYPE *) alloca (yymaxdepth * sizeof (*yylsp));
  906.       bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  907. #endif
  908. #endif /* no yyoverflow */
  909.  
  910.       yyssp = yyss + size - 1;
  911.       yyvsp = yyvs + size - 1;
  912. #ifdef YYLSP_NEEDED
  913.       yylsp = yyls + size - 1;
  914. #endif
  915.  
  916. #if YYDEBUG != 0
  917.       if (yydebug)
  918.     fprintf(stderr, "Stack size increased to %d\n", yymaxdepth);
  919. #endif
  920.  
  921.       if (yyssp >= yyss + yymaxdepth - 1)
  922.     YYABORT;
  923.     }
  924.  
  925. #if YYDEBUG != 0
  926.   if (yydebug)
  927.     fprintf(stderr, "Entering state %d\n", yystate);
  928. #endif
  929.  
  930. /* Do appropriate processing given the current state.  */
  931. /* Read a lookahead token if we need one and don't already have one.  */
  932. yyresume:
  933.  
  934.   /* First try to decide what to do without reference to lookahead token.  */
  935.  
  936.   yyn = yypact[yystate];
  937.   if (yyn == YYFLAG)
  938.     goto yydefault;
  939.  
  940.   /* Not known => get a lookahead token if don't already have one.  */
  941.  
  942.   /* yychar is either YYEMPTY or YYEOF
  943.      or a valid token in external form.  */
  944.  
  945.   if (yychar == YYEMPTY)
  946.     {
  947. #if YYDEBUG != 0
  948.       if (yydebug)
  949.     fprintf(stderr, "Reading a token: ");
  950. #endif
  951.       yychar = YYLEX;
  952.     }
  953.  
  954.   /* Convert token to internal form (in yychar1) for indexing tables with */
  955.  
  956.   if (yychar <= 0)        /* This means end of input. */
  957.     {
  958.       yychar1 = 0;
  959.       yychar = YYEOF;        /* Don't call YYLEX any more */
  960.  
  961. #if YYDEBUG != 0
  962.       if (yydebug)
  963.     fprintf(stderr, "Now at end of input.\n");
  964. #endif
  965.     }
  966.   else
  967.     {
  968.       yychar1 = YYTRANSLATE(yychar);
  969.  
  970. #if YYDEBUG != 0
  971.       if (yydebug)
  972.     fprintf(stderr, "Next token is %d (%s)\n", yychar, yytname[yychar1]);
  973. #endif
  974.     }
  975.  
  976.   yyn += yychar1;
  977.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  978.     goto yydefault;
  979.  
  980.   yyn = yytable[yyn];
  981.  
  982.   /* yyn is what to do for this token type in this state.
  983.      Negative => reduce, -yyn is rule number.
  984.      Positive => shift, yyn is new state.
  985.        New state is final state => don't bother to shift,
  986.        just return success.
  987.      0, or most negative number => error.  */
  988.  
  989.   if (yyn < 0)
  990.     {
  991.       if (yyn == YYFLAG)
  992.     goto yyerrlab;
  993.       yyn = -yyn;
  994.       goto yyreduce;
  995.     }
  996.   else if (yyn == 0)
  997.     goto yyerrlab;
  998.  
  999.   if (yyn == YYFINAL)
  1000.     YYACCEPT;
  1001.  
  1002.   /* Shift the lookahead token.  */
  1003.  
  1004. #if YYDEBUG != 0
  1005.   if (yydebug)
  1006.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  1007. #endif
  1008.  
  1009.   /* Discard the token being shifted unless it is eof.  */
  1010.   if (yychar != YYEOF)
  1011.     yychar = YYEMPTY;
  1012.  
  1013.   *++yyvsp = yylval;
  1014. #ifdef YYLSP_NEEDED
  1015.   *++yylsp = yylloc;
  1016. #endif
  1017.  
  1018.   /* count tokens shifted since error; after three, turn off error status.  */
  1019.   if (yyerrstatus) yyerrstatus--;
  1020.  
  1021.   yystate = yyn;
  1022.   goto yynewstate;
  1023.  
  1024. /* Do the default action for the current state.  */
  1025. yydefault:
  1026.  
  1027.   yyn = yydefact[yystate];
  1028.   if (yyn == 0)
  1029.     goto yyerrlab;
  1030.  
  1031. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  1032. yyreduce:
  1033.   yylen = yyr2[yyn];
  1034.   yyval = yyvsp[1-yylen]; /* implement default value of the action */
  1035.  
  1036. #if YYDEBUG != 0
  1037.   if (yydebug)
  1038.     {
  1039.       if (yylen == 1)
  1040.     fprintf (stderr, "Reducing 1 value via line %d, ",
  1041.          yyrline[yyn]);
  1042.       else
  1043.     fprintf (stderr, "Reducing %d values via line %d, ",
  1044.          yylen, yyrline[yyn]);
  1045.     }
  1046. #endif
  1047.  
  1048.  
  1049.   switch (yyn) {
  1050.  
  1051. case 3:
  1052. #line 185 "../gcc-1.37/c-parse.y"
  1053. {yyval.ttype = NULL_TREE; ;
  1054.     break;}
  1055. case 5:
  1056. #line 186 "../gcc-1.37/c-parse.y"
  1057. {yyval.ttype = NULL_TREE; ;
  1058.     break;}
  1059. case 9:
  1060. #line 193 "../gcc-1.37/c-parse.y"
  1061. { if (pedantic)
  1062.             warning ("ANSI C forbids use of `asm' keyword");
  1063.           if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
  1064.           assemble_asm (yyvsp[-2].ttype); ;
  1065.     break;}
  1066. case 10:
  1067. #line 201 "../gcc-1.37/c-parse.y"
  1068. { if (pedantic)
  1069.             error ("ANSI C forbids data definition lacking type or storage class");
  1070.           else if (!flag_traditional)
  1071.             warning ("data definition lacks type or storage class"); ;
  1072.     break;}
  1073. case 11:
  1074. #line 206 "../gcc-1.37/c-parse.y"
  1075. {;
  1076.     break;}
  1077. case 12:
  1078. #line 208 "../gcc-1.37/c-parse.y"
  1079. {;
  1080.     break;}
  1081. case 13:
  1082. #line 210 "../gcc-1.37/c-parse.y"
  1083. { error ("empty declaration"); ;
  1084.     break;}
  1085. case 14:
  1086. #line 212 "../gcc-1.37/c-parse.y"
  1087. { shadow_tag (yyvsp[-1].ttype); ;
  1088.     break;}
  1089. case 17:
  1090. #line 216 "../gcc-1.37/c-parse.y"
  1091. { if (pedantic)
  1092.             warning ("ANSI C does not allow extra `;' outside of a function"); ;
  1093.     break;}
  1094. case 18:
  1095. #line 222 "../gcc-1.37/c-parse.y"
  1096. { if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype))
  1097.             YYERROR;
  1098.           reinit_parse_for_function (); ;
  1099.     break;}
  1100. case 19:
  1101. #line 226 "../gcc-1.37/c-parse.y"
  1102. { store_parm_decls (); ;
  1103.     break;}
  1104. case 20:
  1105. #line 228 "../gcc-1.37/c-parse.y"
  1106. { finish_function (lineno); ;
  1107.     break;}
  1108. case 21:
  1109. #line 230 "../gcc-1.37/c-parse.y"
  1110. { ;
  1111.     break;}
  1112. case 22:
  1113. #line 232 "../gcc-1.37/c-parse.y"
  1114. { if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype))
  1115.             YYERROR;
  1116.           reinit_parse_for_function (); ;
  1117.     break;}
  1118. case 23:
  1119. #line 236 "../gcc-1.37/c-parse.y"
  1120. { store_parm_decls (); ;
  1121.     break;}
  1122. case 24:
  1123. #line 238 "../gcc-1.37/c-parse.y"
  1124. { finish_function (lineno); ;
  1125.     break;}
  1126. case 25:
  1127. #line 240 "../gcc-1.37/c-parse.y"
  1128. { ;
  1129.     break;}
  1130. case 26:
  1131. #line 242 "../gcc-1.37/c-parse.y"
  1132. { if (! start_function (0, yyvsp[0].ttype))
  1133.             YYERROR;
  1134.           reinit_parse_for_function (); ;
  1135.     break;}
  1136. case 27:
  1137. #line 246 "../gcc-1.37/c-parse.y"
  1138. { store_parm_decls (); ;
  1139.     break;}
  1140. case 28:
  1141. #line 248 "../gcc-1.37/c-parse.y"
  1142. { finish_function (lineno); ;
  1143.     break;}
  1144. case 29:
  1145. #line 250 "../gcc-1.37/c-parse.y"
  1146. { ;
  1147.     break;}
  1148. case 32:
  1149. #line 259 "../gcc-1.37/c-parse.y"
  1150. { yyval.code = ADDR_EXPR; ;
  1151.     break;}
  1152. case 33:
  1153. #line 261 "../gcc-1.37/c-parse.y"
  1154. { yyval.code = NEGATE_EXPR; ;
  1155.     break;}
  1156. case 34:
  1157. #line 263 "../gcc-1.37/c-parse.y"
  1158. { yyval.code = CONVERT_EXPR; ;
  1159.     break;}
  1160. case 35:
  1161. #line 265 "../gcc-1.37/c-parse.y"
  1162. { yyval.code = PREINCREMENT_EXPR; ;
  1163.     break;}
  1164. case 36:
  1165. #line 267 "../gcc-1.37/c-parse.y"
  1166. { yyval.code = PREDECREMENT_EXPR; ;
  1167.     break;}
  1168. case 37:
  1169. #line 269 "../gcc-1.37/c-parse.y"
  1170. { yyval.code = BIT_NOT_EXPR; ;
  1171.     break;}
  1172. case 38:
  1173. #line 271 "../gcc-1.37/c-parse.y"
  1174. { yyval.code = TRUTH_NOT_EXPR; ;
  1175.     break;}
  1176. case 39:
  1177. #line 275 "../gcc-1.37/c-parse.y"
  1178. { yyval.ttype = build_compound_expr (yyvsp[0].ttype); ;
  1179.     break;}
  1180. case 40:
  1181. #line 280 "../gcc-1.37/c-parse.y"
  1182. { yyval.ttype = NULL_TREE; ;
  1183.     break;}
  1184. case 42:
  1185. #line 286 "../gcc-1.37/c-parse.y"
  1186. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  1187.     break;}
  1188. case 43:
  1189. #line 288 "../gcc-1.37/c-parse.y"
  1190. { chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  1191.     break;}
  1192. case 45:
  1193. #line 294 "../gcc-1.37/c-parse.y"
  1194. { yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ;
  1195.     break;}
  1196. case 46:
  1197. #line 296 "../gcc-1.37/c-parse.y"
  1198. { yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0); ;
  1199.     break;}
  1200. case 47:
  1201. #line 298 "../gcc-1.37/c-parse.y"
  1202. { if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
  1203.               && TREE_PACKED (TREE_OPERAND (yyvsp[0].ttype, 1)))
  1204.             error ("`sizeof' applied to a bit-field");
  1205.           /* ANSI says arrays and functions are converted inside comma.
  1206.              But we can't really convert them in build_compound_expr
  1207.              because that would break commas in lvalues.
  1208.              So do the conversion here if operand was a comma.  */
  1209.           if (TREE_CODE (yyvsp[0].ttype) == COMPOUND_EXPR
  1210.               && (TREE_CODE (TREE_TYPE (yyvsp[0].ttype)) == ARRAY_TYPE
  1211.               || TREE_CODE (TREE_TYPE (yyvsp[0].ttype)) == FUNCTION_TYPE))
  1212.             yyvsp[0].ttype = default_conversion (yyvsp[0].ttype);
  1213.           yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ;
  1214.     break;}
  1215. case 48:
  1216. #line 311 "../gcc-1.37/c-parse.y"
  1217. { yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ;
  1218.     break;}
  1219. case 49:
  1220. #line 313 "../gcc-1.37/c-parse.y"
  1221. { if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
  1222.               && TREE_PACKED (TREE_OPERAND (yyvsp[0].ttype, 1)))
  1223.             error ("`__alignof' applied to a bit-field");
  1224.           if (TREE_CODE (yyvsp[0].ttype) == INDIRECT_REF)
  1225.             {
  1226.               tree t = TREE_OPERAND (yyvsp[0].ttype, 0);
  1227.               tree best = t;
  1228.               int bestalign = TYPE_ALIGN (TREE_TYPE (TREE_TYPE (t)));
  1229.               while (TREE_CODE (t) == NOP_EXPR
  1230.                  && TREE_CODE (TREE_TYPE (TREE_OPERAND (t, 0))) == POINTER_TYPE)
  1231.             {
  1232.               int thisalign;
  1233.               t = TREE_OPERAND (t, 0);
  1234.               thisalign = TYPE_ALIGN (TREE_TYPE (TREE_TYPE (t)));
  1235.               if (thisalign > bestalign)
  1236.                 best = t, bestalign = thisalign;
  1237.             }
  1238.               yyval.ttype = c_alignof (TREE_TYPE (TREE_TYPE (best)));
  1239.             }
  1240.           else
  1241.             {
  1242.               /* ANSI says arrays and fns are converted inside comma.
  1243.              But we can't convert them in build_compound_expr
  1244.              because that would break commas in lvalues.
  1245.              So do the conversion here if operand was a comma.  */
  1246.               if (TREE_CODE (yyvsp[0].ttype) == COMPOUND_EXPR
  1247.               && (TREE_CODE (TREE_TYPE (yyvsp[0].ttype)) == ARRAY_TYPE
  1248.                   || TREE_CODE (TREE_TYPE (yyvsp[0].ttype)) == FUNCTION_TYPE))
  1249.             yyvsp[0].ttype = default_conversion (yyvsp[0].ttype);
  1250.               yyval.ttype = c_alignof (TREE_TYPE (yyvsp[0].ttype));
  1251.             }
  1252.         ;
  1253.     break;}
  1254. case 50:
  1255. #line 346 "../gcc-1.37/c-parse.y"
  1256. { yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ;
  1257.     break;}
  1258. case 52:
  1259. #line 352 "../gcc-1.37/c-parse.y"
  1260. { tree type = groktypename (yyvsp[-2].ttype);
  1261.           yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ;
  1262.     break;}
  1263. case 53:
  1264. #line 355 "../gcc-1.37/c-parse.y"
  1265. { tree type = groktypename (yyvsp[-5].ttype);
  1266.           if (pedantic)
  1267.             warning ("ANSI C forbids constructor expressions");
  1268.           yyval.ttype = digest_init (type, build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)), 0);
  1269.           if (TREE_CODE (type) == ARRAY_TYPE && TYPE_SIZE (type) == 0)
  1270.             {
  1271.               int failure = complete_array_type (type, yyval.ttype, 1);
  1272.               if (failure)
  1273.             abort ();
  1274.             }
  1275.         ;
  1276.     break;}
  1277. case 55:
  1278. #line 371 "../gcc-1.37/c-parse.y"
  1279. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1280.     break;}
  1281. case 56:
  1282. #line 373 "../gcc-1.37/c-parse.y"
  1283. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1284.     break;}
  1285. case 57:
  1286. #line 375 "../gcc-1.37/c-parse.y"
  1287. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1288.     break;}
  1289. case 58:
  1290. #line 377 "../gcc-1.37/c-parse.y"
  1291. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1292.     break;}
  1293. case 59:
  1294. #line 379 "../gcc-1.37/c-parse.y"
  1295. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1296.     break;}
  1297. case 60:
  1298. #line 381 "../gcc-1.37/c-parse.y"
  1299. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1300.     break;}
  1301. case 61:
  1302. #line 383 "../gcc-1.37/c-parse.y"
  1303. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1304.     break;}
  1305. case 62:
  1306. #line 385 "../gcc-1.37/c-parse.y"
  1307. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1308.     break;}
  1309. case 63:
  1310. #line 387 "../gcc-1.37/c-parse.y"
  1311. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1312.     break;}
  1313. case 64:
  1314. #line 389 "../gcc-1.37/c-parse.y"
  1315. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1316.     break;}
  1317. case 65:
  1318. #line 391 "../gcc-1.37/c-parse.y"
  1319. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1320.     break;}
  1321. case 66:
  1322. #line 393 "../gcc-1.37/c-parse.y"
  1323. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1324.     break;}
  1325. case 67:
  1326. #line 395 "../gcc-1.37/c-parse.y"
  1327. { yyval.ttype = build_binary_op (TRUTH_ANDIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1328.     break;}
  1329. case 68:
  1330. #line 397 "../gcc-1.37/c-parse.y"
  1331. { yyval.ttype = build_binary_op (TRUTH_ORIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1332.     break;}
  1333. case 69:
  1334. #line 399 "../gcc-1.37/c-parse.y"
  1335. { yyval.ttype = build_conditional_expr (yyvsp[-4].ttype, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1336.     break;}
  1337. case 70:
  1338. #line 401 "../gcc-1.37/c-parse.y"
  1339. { yyval.ttype = build_modify_expr (yyvsp[-2].ttype, NOP_EXPR, yyvsp[0].ttype); ;
  1340.     break;}
  1341. case 71:
  1342. #line 403 "../gcc-1.37/c-parse.y"
  1343. { yyval.ttype = build_modify_expr (yyvsp[-2].ttype, yyvsp[-1].code, yyvsp[0].ttype); ;
  1344.     break;}
  1345. case 72:
  1346. #line 408 "../gcc-1.37/c-parse.y"
  1347. { yyval.ttype = lastiddecl;
  1348.           if (!yyval.ttype || yyval.ttype == error_mark_node)
  1349.             {
  1350.               if (yychar == YYEMPTY)
  1351.             yychar = YYLEX;
  1352.               if (yychar == '(')
  1353.             {
  1354.               yyval.ttype = implicitly_declare (yyvsp[0].ttype);
  1355.               assemble_external (yyval.ttype);
  1356.               TREE_USED (yyval.ttype) = 1;
  1357.             }
  1358.               else if (current_function_decl == 0)
  1359.             {
  1360.               error ("`%s' undeclared, outside of functions",
  1361.                  IDENTIFIER_POINTER (yyvsp[0].ttype));
  1362.               yyval.ttype = error_mark_node;
  1363.             }
  1364.               else
  1365.             {
  1366.               if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node
  1367.                   || IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) != current_function_decl)
  1368.                 {
  1369.                   error ("`%s' undeclared (first use this function)",
  1370.                      IDENTIFIER_POINTER (yyvsp[0].ttype));
  1371.  
  1372.                   if (! undeclared_variable_notice)
  1373.                 {
  1374.                   error ("(Each undeclared identifier is reported only once");
  1375.                   error ("for each function it appears in.)");
  1376.                   undeclared_variable_notice = 1;
  1377.                 }
  1378.                 }
  1379.               yyval.ttype = error_mark_node;
  1380.               /* Prevent repeated error messages.  */
  1381.               IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) = error_mark_node;
  1382.               IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) = current_function_decl;
  1383.             }
  1384.             }
  1385.           else if (! TREE_USED (yyval.ttype))
  1386.             {
  1387.               if (TREE_EXTERNAL (yyval.ttype))
  1388.             assemble_external (yyval.ttype);
  1389.               TREE_USED (yyval.ttype) = 1;
  1390.             }
  1391.           if (TREE_CODE (yyval.ttype) == CONST_DECL)
  1392.             yyval.ttype = DECL_INITIAL (yyval.ttype);
  1393.         ;
  1394.     break;}
  1395. case 74:
  1396. #line 457 "../gcc-1.37/c-parse.y"
  1397. { yyval.ttype = combine_strings (yyvsp[0].ttype); ;
  1398.     break;}
  1399. case 75:
  1400. #line 459 "../gcc-1.37/c-parse.y"
  1401. { yyval.ttype = yyvsp[-1].ttype; ;
  1402.     break;}
  1403. case 76:
  1404. #line 461 "../gcc-1.37/c-parse.y"
  1405. { yyval.ttype = error_mark_node; ;
  1406.     break;}
  1407. case 77:
  1408. #line 463 "../gcc-1.37/c-parse.y"
  1409. { if (current_function_decl == 0)
  1410.             {
  1411.               error ("braced-group within expression allowed only inside a function");
  1412.               YYERROR;
  1413.             }
  1414.           keep_next_level ();
  1415.           yyval.ttype = expand_start_stmt_expr (); ;
  1416.     break;}
  1417. case 78:
  1418. #line 471 "../gcc-1.37/c-parse.y"
  1419. { tree rtl_exp;
  1420.           if (pedantic)
  1421.             warning ("ANSI C forbids braced-groups within expressions");
  1422.           rtl_exp = expand_end_stmt_expr (yyvsp[-2].ttype);
  1423.           yyval.ttype = yyvsp[-1].ttype;
  1424.           TREE_USED (yyval.ttype) = 0;
  1425.           /* Since the statements have side effects,
  1426.              consider this volatile.  */
  1427.           TREE_VOLATILE (yyval.ttype) = 1;
  1428.           TREE_TYPE (yyval.ttype) = TREE_TYPE (rtl_exp);
  1429.           STMT_BODY (yyval.ttype) = rtl_exp; ;
  1430.     break;}
  1431. case 79:
  1432. #line 483 "../gcc-1.37/c-parse.y"
  1433. { yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1434.     break;}
  1435. case 80:
  1436. #line 485 "../gcc-1.37/c-parse.y"
  1437. { yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1438.     break;}
  1439. case 81:
  1440. #line 487 "../gcc-1.37/c-parse.y"
  1441. { yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1442.     break;}
  1443. case 82:
  1444. #line 489 "../gcc-1.37/c-parse.y"
  1445. { yyval.ttype = build_component_ref (build_indirect_ref (yyvsp[-2].ttype, "->"), yyvsp[0].ttype); ;
  1446.     break;}
  1447. case 83:
  1448. #line 491 "../gcc-1.37/c-parse.y"
  1449. { yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ;
  1450.     break;}
  1451. case 84:
  1452. #line 493 "../gcc-1.37/c-parse.y"
  1453. { yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ;
  1454.     break;}
  1455. case 86:
  1456. #line 500 "../gcc-1.37/c-parse.y"
  1457. { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1458.     break;}
  1459. case 93:
  1460. #line 520 "../gcc-1.37/c-parse.y"
  1461. { yyval.itype = suspend_momentary ();
  1462.           declspec_stack = tree_cons (0, current_declspecs,
  1463.                           declspec_stack);
  1464.           current_declspecs = yyvsp[0].ttype; ;
  1465.     break;}
  1466. case 94:
  1467. #line 528 "../gcc-1.37/c-parse.y"
  1468. { current_declspecs = TREE_VALUE (declspec_stack);
  1469.           declspec_stack = TREE_CHAIN (declspec_stack);
  1470.           resume_momentary (yyvsp[-2].itype); ;
  1471.     break;}
  1472. case 95:
  1473. #line 532 "../gcc-1.37/c-parse.y"
  1474. { current_declspecs = TREE_VALUE (declspec_stack);
  1475.           declspec_stack = TREE_CHAIN (declspec_stack);
  1476.           resume_momentary (yyvsp[-2].itype); ;
  1477.     break;}
  1478. case 96:
  1479. #line 536 "../gcc-1.37/c-parse.y"
  1480. { shadow_tag (yyvsp[-1].ttype); ;
  1481.     break;}
  1482. case 97:
  1483. #line 538 "../gcc-1.37/c-parse.y"
  1484. { warning ("empty declaration"); ;
  1485.     break;}
  1486. case 98:
  1487. #line 547 "../gcc-1.37/c-parse.y"
  1488. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1489.     break;}
  1490. case 99:
  1491. #line 549 "../gcc-1.37/c-parse.y"
  1492. { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
  1493.     break;}
  1494. case 100:
  1495. #line 553 "../gcc-1.37/c-parse.y"
  1496. { yyval.ttype = NULL_TREE; ;
  1497.     break;}
  1498. case 101:
  1499. #line 555 "../gcc-1.37/c-parse.y"
  1500. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1501.     break;}
  1502. case 102:
  1503. #line 557 "../gcc-1.37/c-parse.y"
  1504. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1505.     break;}
  1506. case 103:
  1507. #line 566 "../gcc-1.37/c-parse.y"
  1508. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1509.     break;}
  1510. case 104:
  1511. #line 568 "../gcc-1.37/c-parse.y"
  1512. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1513.     break;}
  1514. case 105:
  1515. #line 570 "../gcc-1.37/c-parse.y"
  1516. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1517.     break;}
  1518. case 106:
  1519. #line 572 "../gcc-1.37/c-parse.y"
  1520. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1521.     break;}
  1522. case 107:
  1523. #line 582 "../gcc-1.37/c-parse.y"
  1524. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1525.     break;}
  1526. case 108:
  1527. #line 584 "../gcc-1.37/c-parse.y"
  1528. { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
  1529.     break;}
  1530. case 109:
  1531. #line 588 "../gcc-1.37/c-parse.y"
  1532. { yyval.ttype = NULL_TREE; ;
  1533.     break;}
  1534. case 110:
  1535. #line 590 "../gcc-1.37/c-parse.y"
  1536. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1537.     break;}
  1538. case 114:
  1539. #line 601 "../gcc-1.37/c-parse.y"
  1540. { yyval.ttype = TREE_TYPE (yyvsp[-1].ttype);
  1541.           if (pedantic)
  1542.             warning ("ANSI C forbids `typeof'"); ;
  1543.     break;}
  1544. case 115:
  1545. #line 605 "../gcc-1.37/c-parse.y"
  1546. { yyval.ttype = groktypename (yyvsp[-1].ttype);
  1547.           if (pedantic)
  1548.             warning ("ANSI C forbids `typeof'"); ;
  1549.     break;}
  1550. case 123:
  1551. #line 629 "../gcc-1.37/c-parse.y"
  1552. { yyval.ttype = NULL_TREE; ;
  1553.     break;}
  1554. case 124:
  1555. #line 631 "../gcc-1.37/c-parse.y"
  1556. { if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype);
  1557.           yyval.ttype = yyvsp[-1].ttype;
  1558.           if (pedantic)
  1559.             warning ("ANSI C forbids use of `asm' keyword");
  1560.         ;
  1561.     break;}
  1562. case 125:
  1563. #line 640 "../gcc-1.37/c-parse.y"
  1564. { yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1); ;
  1565.     break;}
  1566. case 126:
  1567. #line 643 "../gcc-1.37/c-parse.y"
  1568. { finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
  1569.     break;}
  1570. case 127:
  1571. #line 645 "../gcc-1.37/c-parse.y"
  1572. { tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0);
  1573.           finish_decl (d, NULL_TREE, yyvsp[-1].ttype); ;
  1574.     break;}
  1575. case 128:
  1576. #line 651 "../gcc-1.37/c-parse.y"
  1577. { yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1); ;
  1578.     break;}
  1579. case 129:
  1580. #line 654 "../gcc-1.37/c-parse.y"
  1581. { finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
  1582.     break;}
  1583. case 130:
  1584. #line 656 "../gcc-1.37/c-parse.y"
  1585. { tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0);
  1586.           finish_decl (d, NULL_TREE, yyvsp[-1].ttype); ;
  1587.     break;}
  1588. case 131:
  1589. #line 663 "../gcc-1.37/c-parse.y"
  1590. { yyval.ttype = NULL_TREE; ;
  1591.     break;}
  1592. case 132:
  1593. #line 665 "../gcc-1.37/c-parse.y"
  1594. { yyval.ttype = yyvsp[-2].ttype; ;
  1595.     break;}
  1596. case 135:
  1597. #line 675 "../gcc-1.37/c-parse.y"
  1598. { warning ("`%s' attribute directive ignored",
  1599.            IDENTIFIER_POINTER (yyvsp[0].ttype));
  1600.       yyval.ttype = yyvsp[0].ttype; ;
  1601.     break;}
  1602. case 136:
  1603. #line 679 "../gcc-1.37/c-parse.y"
  1604. { /* if not "aligned(1)", then issue warning */
  1605.       if (strcmp (IDENTIFIER_POINTER (yyvsp[-3].ttype), "aligned") != 0
  1606.           || TREE_CODE (yyvsp[-1].ttype) != INTEGER_CST
  1607.           || TREE_INT_CST_LOW (yyvsp[-1].ttype) != 1)
  1608.         warning ("`%s' attribute directive ignored",
  1609.              IDENTIFIER_POINTER (yyvsp[-3].ttype));
  1610.       yyval.ttype = yyvsp[-3].ttype; ;
  1611.     break;}
  1612. case 137:
  1613. #line 687 "../gcc-1.37/c-parse.y"
  1614. { warning ("`%s' attribute directive ignored",
  1615.            IDENTIFIER_POINTER (yyvsp[-3].ttype));
  1616.       yyval.ttype = yyvsp[-3].ttype; ;
  1617.     break;}
  1618. case 139:
  1619. #line 695 "../gcc-1.37/c-parse.y"
  1620. { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, NULL_TREE);
  1621.           if (pedantic)
  1622.             warning ("ANSI C forbids empty initializer braces"); ;
  1623.     break;}
  1624. case 140:
  1625. #line 699 "../gcc-1.37/c-parse.y"
  1626. { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
  1627.     break;}
  1628. case 141:
  1629. #line 701 "../gcc-1.37/c-parse.y"
  1630. { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
  1631.     break;}
  1632. case 142:
  1633. #line 703 "../gcc-1.37/c-parse.y"
  1634. { yyval.ttype = NULL_TREE; ;
  1635.     break;}
  1636. case 143:
  1637. #line 710 "../gcc-1.37/c-parse.y"
  1638. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  1639.     break;}
  1640. case 144:
  1641. #line 712 "../gcc-1.37/c-parse.y"
  1642. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1643.     break;}
  1644. case 147:
  1645. #line 727 "../gcc-1.37/c-parse.y"
  1646. { yyval.ttype = yyvsp[-1].ttype; ;
  1647.     break;}
  1648. case 148:
  1649. #line 729 "../gcc-1.37/c-parse.y"
  1650. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1651.     break;}
  1652. case 149:
  1653. #line 734 "../gcc-1.37/c-parse.y"
  1654. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1655.     break;}
  1656. case 150:
  1657. #line 736 "../gcc-1.37/c-parse.y"
  1658. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1659.     break;}
  1660. case 151:
  1661. #line 738 "../gcc-1.37/c-parse.y"
  1662. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1663.     break;}
  1664. case 153:
  1665. #line 749 "../gcc-1.37/c-parse.y"
  1666. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1667.     break;}
  1668. case 154:
  1669. #line 754 "../gcc-1.37/c-parse.y"
  1670. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1671.     break;}
  1672. case 155:
  1673. #line 756 "../gcc-1.37/c-parse.y"
  1674. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1675.     break;}
  1676. case 156:
  1677. #line 758 "../gcc-1.37/c-parse.y"
  1678. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1679.     break;}
  1680. case 158:
  1681. #line 767 "../gcc-1.37/c-parse.y"
  1682. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1683.     break;}
  1684. case 159:
  1685. #line 772 "../gcc-1.37/c-parse.y"
  1686. { yyval.ttype = yyvsp[-1].ttype; ;
  1687.     break;}
  1688. case 160:
  1689. #line 774 "../gcc-1.37/c-parse.y"
  1690. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1691.     break;}
  1692. case 161:
  1693. #line 776 "../gcc-1.37/c-parse.y"
  1694. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1695.     break;}
  1696. case 162:
  1697. #line 778 "../gcc-1.37/c-parse.y"
  1698. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1699.     break;}
  1700. case 164:
  1701. #line 784 "../gcc-1.37/c-parse.y"
  1702. { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
  1703.           /* Start scope of tag before parsing components.  */
  1704.         ;
  1705.     break;}
  1706. case 165:
  1707. #line 788 "../gcc-1.37/c-parse.y"
  1708. { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
  1709.           /* Really define the structure.  */
  1710.         ;
  1711.     break;}
  1712. case 166:
  1713. #line 792 "../gcc-1.37/c-parse.y"
  1714. { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
  1715.                       yyvsp[-1].ttype); ;
  1716.     break;}
  1717. case 167:
  1718. #line 795 "../gcc-1.37/c-parse.y"
  1719. { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
  1720.     break;}
  1721. case 168:
  1722. #line 797 "../gcc-1.37/c-parse.y"
  1723. { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
  1724.     break;}
  1725. case 169:
  1726. #line 799 "../gcc-1.37/c-parse.y"
  1727. { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1728.     break;}
  1729. case 170:
  1730. #line 801 "../gcc-1.37/c-parse.y"
  1731. { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
  1732.                       yyvsp[-1].ttype); ;
  1733.     break;}
  1734. case 171:
  1735. #line 804 "../gcc-1.37/c-parse.y"
  1736. { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
  1737.     break;}
  1738. case 172:
  1739. #line 806 "../gcc-1.37/c-parse.y"
  1740. { yyvsp[0].itype = suspend_momentary ();
  1741.           yyval.ttype = start_enum (yyvsp[-1].ttype); ;
  1742.     break;}
  1743. case 173:
  1744. #line 809 "../gcc-1.37/c-parse.y"
  1745. { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1746.           resume_momentary (yyvsp[-4].itype); ;
  1747.     break;}
  1748. case 174:
  1749. #line 812 "../gcc-1.37/c-parse.y"
  1750. { yyvsp[0].itype = suspend_momentary ();
  1751.           yyval.ttype = start_enum (NULL_TREE); ;
  1752.     break;}
  1753. case 175:
  1754. #line 815 "../gcc-1.37/c-parse.y"
  1755. { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1756.           resume_momentary (yyvsp[-4].itype); ;
  1757.     break;}
  1758. case 176:
  1759. #line 818 "../gcc-1.37/c-parse.y"
  1760. { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
  1761.     break;}
  1762. case 180:
  1763. #line 829 "../gcc-1.37/c-parse.y"
  1764. { if (pedantic) warning ("comma at end of enumerator list"); ;
  1765.     break;}
  1766. case 181:
  1767. #line 833 "../gcc-1.37/c-parse.y"
  1768. { yyval.ttype = NULL_TREE; ;
  1769.     break;}
  1770. case 182:
  1771. #line 835 "../gcc-1.37/c-parse.y"
  1772. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1773.     break;}
  1774. case 183:
  1775. #line 837 "../gcc-1.37/c-parse.y"
  1776. { if (pedantic)
  1777.             warning ("extra semicolon in struct or union specified"); ;
  1778.     break;}
  1779. case 184:
  1780. #line 852 "../gcc-1.37/c-parse.y"
  1781. { yyval.ttype = yyvsp[0].ttype;
  1782.           current_declspecs = TREE_VALUE (declspec_stack);
  1783.           declspec_stack = TREE_CHAIN (declspec_stack);
  1784.           resume_momentary (yyvsp[-1].itype); ;
  1785.     break;}
  1786. case 185:
  1787. #line 857 "../gcc-1.37/c-parse.y"
  1788. { yyval.ttype = yyvsp[0].ttype;
  1789.           current_declspecs = TREE_VALUE (declspec_stack);
  1790.           declspec_stack = TREE_CHAIN (declspec_stack);
  1791.           resume_momentary (yyvsp[-1].itype); ;
  1792.     break;}
  1793. case 186:
  1794. #line 862 "../gcc-1.37/c-parse.y"
  1795. { yyval.ttype = NULL_TREE; ;
  1796.     break;}
  1797. case 187:
  1798. #line 867 "../gcc-1.37/c-parse.y"
  1799. { if (pedantic)
  1800.             warning ("ANSI C forbids member declarations with no members");
  1801.           yyval.ttype = NULL_TREE; ;
  1802.     break;}
  1803. case 189:
  1804. #line 872 "../gcc-1.37/c-parse.y"
  1805. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1806.     break;}
  1807. case 190:
  1808. #line 877 "../gcc-1.37/c-parse.y"
  1809. { yyval.ttype = grokfield (input_filename, lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE); ;
  1810.     break;}
  1811. case 191:
  1812. #line 879 "../gcc-1.37/c-parse.y"
  1813. { yyval.ttype = grokfield (input_filename, lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype); ;
  1814.     break;}
  1815. case 192:
  1816. #line 881 "../gcc-1.37/c-parse.y"
  1817. { yyval.ttype = grokfield (input_filename, lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
  1818.     break;}
  1819. case 194:
  1820. #line 892 "../gcc-1.37/c-parse.y"
  1821. { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1822.     break;}
  1823. case 195:
  1824. #line 898 "../gcc-1.37/c-parse.y"
  1825. { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
  1826.     break;}
  1827. case 196:
  1828. #line 900 "../gcc-1.37/c-parse.y"
  1829. { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1830.     break;}
  1831. case 197:
  1832. #line 905 "../gcc-1.37/c-parse.y"
  1833. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1834.     break;}
  1835. case 198:
  1836. #line 907 "../gcc-1.37/c-parse.y"
  1837. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1838.     break;}
  1839. case 199:
  1840. #line 912 "../gcc-1.37/c-parse.y"
  1841. { yyval.ttype = NULL_TREE; ;
  1842.     break;}
  1843. case 201:
  1844. #line 918 "../gcc-1.37/c-parse.y"
  1845. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1846.     break;}
  1847. case 202:
  1848. #line 920 "../gcc-1.37/c-parse.y"
  1849. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1850.     break;}
  1851. case 203:
  1852. #line 925 "../gcc-1.37/c-parse.y"
  1853. { yyval.ttype = NULL_TREE; ;
  1854.     break;}
  1855. case 204:
  1856. #line 927 "../gcc-1.37/c-parse.y"
  1857. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1858.     break;}
  1859. case 205:
  1860. #line 932 "../gcc-1.37/c-parse.y"
  1861. { yyval.ttype = yyvsp[-1].ttype; ;
  1862.     break;}
  1863. case 206:
  1864. #line 935 "../gcc-1.37/c-parse.y"
  1865. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1866.     break;}
  1867. case 207:
  1868. #line 937 "../gcc-1.37/c-parse.y"
  1869. { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
  1870.     break;}
  1871. case 208:
  1872. #line 939 "../gcc-1.37/c-parse.y"
  1873. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1874.     break;}
  1875. case 209:
  1876. #line 941 "../gcc-1.37/c-parse.y"
  1877. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1878.     break;}
  1879. case 210:
  1880. #line 943 "../gcc-1.37/c-parse.y"
  1881. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1882.     break;}
  1883. case 211:
  1884. #line 945 "../gcc-1.37/c-parse.y"
  1885. { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1886.     break;}
  1887. case 212:
  1888. #line 947 "../gcc-1.37/c-parse.y"
  1889. { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
  1890.     break;}
  1891. case 213:
  1892. #line 949 "../gcc-1.37/c-parse.y"
  1893. { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
  1894.     break;}
  1895. case 220:
  1896. #line 971 "../gcc-1.37/c-parse.y"
  1897. { pushlevel (0);
  1898.           clear_last_expr ();
  1899.           push_momentary ();
  1900.           expand_start_bindings (0); ;
  1901.     break;}
  1902. case 221:
  1903. #line 981 "../gcc-1.37/c-parse.y"
  1904. {;
  1905.     break;}
  1906. case 223:
  1907. #line 986 "../gcc-1.37/c-parse.y"
  1908. { yyval.ttype = 0; ;
  1909.     break;}
  1910. case 224:
  1911. #line 988 "../gcc-1.37/c-parse.y"
  1912. { expand_end_bindings (getdecls (), 1, 0);
  1913.           yyval.ttype = poplevel (1, 1, 0);
  1914.           pop_momentary (); ;
  1915.     break;}
  1916. case 225:
  1917. #line 992 "../gcc-1.37/c-parse.y"
  1918. { expand_end_bindings (getdecls (), kept_level_p (), 0);
  1919.           yyval.ttype = poplevel (kept_level_p (), 0, 0);
  1920.           pop_momentary (); ;
  1921.     break;}
  1922. case 226:
  1923. #line 996 "../gcc-1.37/c-parse.y"
  1924. { expand_end_bindings (getdecls (), kept_level_p (), 0);
  1925.           yyval.ttype = poplevel (kept_level_p (), 0, 0);
  1926.           pop_momentary (); ;
  1927.     break;}
  1928. case 227:
  1929. #line 1003 "../gcc-1.37/c-parse.y"
  1930. { emit_line_note (input_filename, lineno);
  1931.           expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0); ;
  1932.     break;}
  1933. case 229:
  1934. #line 1009 "../gcc-1.37/c-parse.y"
  1935. {;
  1936.     break;}
  1937. case 230:
  1938. #line 1011 "../gcc-1.37/c-parse.y"
  1939. { emit_line_note (input_filename, lineno);
  1940.           /* Do default conversion if safe and possibly important,
  1941.              in case within ({...}).  */
  1942.           if ((TREE_CODE (TREE_TYPE (yyvsp[-1].ttype)) == ARRAY_TYPE
  1943.                && lvalue_p (yyvsp[-1].ttype))
  1944.               || TREE_CODE (TREE_TYPE (yyvsp[-1].ttype)) == FUNCTION_TYPE)
  1945.             yyvsp[-1].ttype = default_conversion (yyvsp[-1].ttype);
  1946.           expand_expr_stmt (yyvsp[-1].ttype);
  1947.           clear_momentary (); ;
  1948.     break;}
  1949. case 231:
  1950. #line 1021 "../gcc-1.37/c-parse.y"
  1951. { expand_start_else (); ;
  1952.     break;}
  1953. case 232:
  1954. #line 1023 "../gcc-1.37/c-parse.y"
  1955. { expand_end_else (); ;
  1956.     break;}
  1957. case 233:
  1958. #line 1025 "../gcc-1.37/c-parse.y"
  1959. { expand_end_cond (); ;
  1960.     break;}
  1961. case 234:
  1962. #line 1027 "../gcc-1.37/c-parse.y"
  1963. { emit_nop ();
  1964.           emit_line_note (input_filename, lineno);
  1965.           expand_start_loop (1); ;
  1966.     break;}
  1967. case 235:
  1968. #line 1031 "../gcc-1.37/c-parse.y"
  1969. { emit_line_note (input_filename, lineno);
  1970.           expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-1].ttype)); ;
  1971.     break;}
  1972. case 236:
  1973. #line 1034 "../gcc-1.37/c-parse.y"
  1974. { expand_end_loop (); ;
  1975.     break;}
  1976. case 237:
  1977. #line 1036 "../gcc-1.37/c-parse.y"
  1978. { emit_nop ();
  1979.           emit_line_note (input_filename, lineno);
  1980.           expand_start_loop_continue_elsewhere (1); ;
  1981.     break;}
  1982. case 238:
  1983. #line 1040 "../gcc-1.37/c-parse.y"
  1984. { expand_loop_continue_here (); ;
  1985.     break;}
  1986. case 239:
  1987. #line 1042 "../gcc-1.37/c-parse.y"
  1988. { emit_line_note (input_filename, lineno);
  1989.           expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-2].ttype));
  1990.           expand_end_loop ();
  1991.           clear_momentary (); ;
  1992.     break;}
  1993. case 240:
  1994. #line 1048 "../gcc-1.37/c-parse.y"
  1995. { emit_nop ();
  1996.           emit_line_note (input_filename, lineno);
  1997.           if (yyvsp[-1].ttype) expand_expr_stmt (yyvsp[-1].ttype);
  1998.           expand_start_loop_continue_elsewhere (1); ;
  1999.     break;}
  2000. case 241:
  2001. #line 1053 "../gcc-1.37/c-parse.y"
  2002. { emit_line_note (input_filename, lineno);
  2003.           if (yyvsp[-1].ttype)
  2004.             expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-1].ttype)); ;
  2005.     break;}
  2006. case 242:
  2007. #line 1059 "../gcc-1.37/c-parse.y"
  2008. { push_momentary ();
  2009.           yyvsp[0].itype = lineno; ;
  2010.     break;}
  2011. case 243:
  2012. #line 1062 "../gcc-1.37/c-parse.y"
  2013. { emit_line_note (input_filename, yyvsp[-2].itype);
  2014.           expand_loop_continue_here ();
  2015.           if (yyvsp[-3].ttype)
  2016.             expand_expr_stmt (yyvsp[-3].ttype);
  2017.           pop_momentary ();
  2018.           expand_end_loop (); ;
  2019.     break;}
  2020. case 244:
  2021. #line 1069 "../gcc-1.37/c-parse.y"
  2022. { emit_line_note (input_filename, lineno);
  2023.           c_expand_start_case (yyvsp[-1].ttype);
  2024.           /* Don't let the tree nodes for $3 be discarded by
  2025.              clear_momentary during the parsing of the next stmt.  */
  2026.           push_momentary (); ;
  2027.     break;}
  2028. case 245:
  2029. #line 1075 "../gcc-1.37/c-parse.y"
  2030. { expand_end_case (yyvsp[-3].ttype);
  2031.           pop_momentary (); ;
  2032.     break;}
  2033. case 246:
  2034. #line 1078 "../gcc-1.37/c-parse.y"
  2035. { register tree value = fold (yyvsp[-1].ttype);
  2036.           register tree label
  2037.             = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  2038.  
  2039.           /* build_c_cast puts on a NOP_EXPR to make a non-lvalue.
  2040.              Strip such NOP_EXPRs.  */
  2041.           if (TREE_CODE (value) == NOP_EXPR
  2042.               && TREE_TYPE (value) == TREE_TYPE (TREE_OPERAND (value, 0)))
  2043.             value = TREE_OPERAND (value, 0);
  2044.  
  2045.           if (TREE_CODE (value) != INTEGER_CST
  2046.               && value != error_mark_node)
  2047.             {
  2048.               error ("case label does not reduce to an integer constant");
  2049.               value = error_mark_node;
  2050.             }
  2051.           else
  2052.             /* Promote char or short to int.  */
  2053.             value = default_conversion (value);
  2054.           if (value != error_mark_node)
  2055.             {
  2056.               int success = pushcase (value, label);
  2057.               if (success == 1)
  2058.             error ("case label not within a switch statement");
  2059.               else if (success == 2)
  2060.             error ("duplicate case value");
  2061.               else if (success == 3)
  2062.             warning ("case value out of range");
  2063.             }
  2064.         ;
  2065.     break;}
  2066. case 248:
  2067. #line 1110 "../gcc-1.37/c-parse.y"
  2068. {
  2069.           register tree label
  2070.             = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  2071.           int success = pushcase (NULL_TREE, label);
  2072.           if (success == 1)
  2073.             error ("default label not within a switch statement");
  2074.           else if (success == 2)
  2075.             error ("multiple default labels in one switch");
  2076.         ;
  2077.     break;}
  2078. case 250:
  2079. #line 1121 "../gcc-1.37/c-parse.y"
  2080. { emit_line_note (input_filename, lineno);
  2081.           if ( ! expand_exit_something ())
  2082.             error ("break statement not within loop or switch"); ;
  2083.     break;}
  2084. case 251:
  2085. #line 1125 "../gcc-1.37/c-parse.y"
  2086. { emit_line_note (input_filename, lineno);
  2087.           if (! expand_continue_loop ())
  2088.             error ("continue statement not within a loop"); ;
  2089.     break;}
  2090. case 252:
  2091. #line 1129 "../gcc-1.37/c-parse.y"
  2092. { emit_line_note (input_filename, lineno);
  2093.           c_expand_return (NULL_TREE); ;
  2094.     break;}
  2095. case 253:
  2096. #line 1132 "../gcc-1.37/c-parse.y"
  2097. { emit_line_note (input_filename, lineno);
  2098.           c_expand_return (yyvsp[-1].ttype); ;
  2099.     break;}
  2100. case 254:
  2101. #line 1135 "../gcc-1.37/c-parse.y"
  2102. { if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
  2103.           emit_line_note (input_filename, lineno);
  2104.           expand_asm (yyvsp[-2].ttype); ;
  2105.     break;}
  2106. case 255:
  2107. #line 1140 "../gcc-1.37/c-parse.y"
  2108. { if (TREE_CHAIN (yyvsp[-4].ttype)) yyvsp[-4].ttype = combine_strings (yyvsp[-4].ttype);
  2109.           emit_line_note (input_filename, lineno);
  2110.           c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE,
  2111.                      yyvsp[-6].ttype == ridpointers[(int)RID_VOLATILE],
  2112.                      input_filename, lineno); ;
  2113.     break;}
  2114. case 256:
  2115. #line 1147 "../gcc-1.37/c-parse.y"
  2116. { if (TREE_CHAIN (yyvsp[-6].ttype)) yyvsp[-6].ttype = combine_strings (yyvsp[-6].ttype);
  2117.           emit_line_note (input_filename, lineno);
  2118.           c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
  2119.                      yyvsp[-8].ttype == ridpointers[(int)RID_VOLATILE],
  2120.                      input_filename, lineno); ;
  2121.     break;}
  2122. case 257:
  2123. #line 1155 "../gcc-1.37/c-parse.y"
  2124. { if (TREE_CHAIN (yyvsp[-8].ttype)) yyvsp[-8].ttype = combine_strings (yyvsp[-8].ttype);
  2125.           emit_line_note (input_filename, lineno);
  2126.           c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
  2127.                      yyvsp[-10].ttype == ridpointers[(int)RID_VOLATILE],
  2128.                      input_filename, lineno); ;
  2129.     break;}
  2130. case 258:
  2131. #line 1161 "../gcc-1.37/c-parse.y"
  2132. { tree decl;
  2133.           emit_line_note (input_filename, lineno);
  2134.           decl = lookup_label (yyvsp[-1].ttype);
  2135.           TREE_USED (decl) = 1;
  2136.           expand_goto (decl); ;
  2137.     break;}
  2138. case 259:
  2139. #line 1167 "../gcc-1.37/c-parse.y"
  2140. { tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
  2141.           emit_nop ();
  2142.           if (label)
  2143.             expand_label (label); ;
  2144.     break;}
  2145. case 262:
  2146. #line 1179 "../gcc-1.37/c-parse.y"
  2147. { if (pedantic)
  2148.             warning ("ANSI C forbids use of `asm' keyword");
  2149.           emit_line_note (input_filename, lineno); ;
  2150.     break;}
  2151. case 263:
  2152. #line 1183 "../gcc-1.37/c-parse.y"
  2153. { if (pedantic)
  2154.             warning ("ANSI C forbids use of `asm' keyword");
  2155.           emit_line_note (input_filename, lineno); ;
  2156.     break;}
  2157. case 264:
  2158. #line 1190 "../gcc-1.37/c-parse.y"
  2159. { yyval.ttype = NULL_TREE; ;
  2160.     break;}
  2161. case 266:
  2162. #line 1197 "../gcc-1.37/c-parse.y"
  2163. { yyval.ttype = NULL_TREE; ;
  2164.     break;}
  2165. case 269:
  2166. #line 1204 "../gcc-1.37/c-parse.y"
  2167. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  2168.     break;}
  2169. case 270:
  2170. #line 1209 "../gcc-1.37/c-parse.y"
  2171. { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  2172.     break;}
  2173. case 271:
  2174. #line 1214 "../gcc-1.37/c-parse.y"
  2175. { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
  2176.     break;}
  2177. case 272:
  2178. #line 1216 "../gcc-1.37/c-parse.y"
  2179. { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
  2180.     break;}
  2181. case 273:
  2182. #line 1222 "../gcc-1.37/c-parse.y"
  2183. { pushlevel (0);
  2184.           declare_parm_level (); ;
  2185.     break;}
  2186. case 274:
  2187. #line 1225 "../gcc-1.37/c-parse.y"
  2188. { yyval.ttype = yyvsp[0].ttype;
  2189.           parmlist_tags_warning ();
  2190.           poplevel (0, 0, 0); ;
  2191.     break;}
  2192. case 275:
  2193. #line 1233 "../gcc-1.37/c-parse.y"
  2194. { pushlevel (0);
  2195.           declare_parm_level (); ;
  2196.     break;}
  2197. case 276:
  2198. #line 1236 "../gcc-1.37/c-parse.y"
  2199. { yyval.ttype = yyvsp[0].ttype;
  2200.           parmlist_tags_warning ();
  2201.           poplevel (0, 0, 0); ;
  2202.     break;}
  2203. case 278:
  2204. #line 1244 "../gcc-1.37/c-parse.y"
  2205. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
  2206.     break;}
  2207. case 279:
  2208. #line 1246 "../gcc-1.37/c-parse.y"
  2209. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2210.     break;}
  2211. case 281:
  2212. #line 1252 "../gcc-1.37/c-parse.y"
  2213. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2214.     break;}
  2215. case 282:
  2216. #line 1258 "../gcc-1.37/c-parse.y"
  2217. { yyval.ttype = get_parm_info (0); ;
  2218.     break;}
  2219. case 283:
  2220. #line 1260 "../gcc-1.37/c-parse.y"
  2221. { yyval.ttype = get_parm_info (1); ;
  2222.     break;}
  2223. case 284:
  2224. #line 1262 "../gcc-1.37/c-parse.y"
  2225. { yyval.ttype = get_parm_info (0); ;
  2226.     break;}
  2227. case 285:
  2228. #line 1267 "../gcc-1.37/c-parse.y"
  2229. { push_parm_decl (yyvsp[0].ttype); ;
  2230.     break;}
  2231. case 286:
  2232. #line 1269 "../gcc-1.37/c-parse.y"
  2233. { push_parm_decl (yyvsp[0].ttype); ;
  2234.     break;}
  2235. case 287:
  2236. #line 1276 "../gcc-1.37/c-parse.y"
  2237. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2238.     break;}
  2239. case 288:
  2240. #line 1278 "../gcc-1.37/c-parse.y"
  2241. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2242.     break;}
  2243. case 289:
  2244. #line 1280 "../gcc-1.37/c-parse.y"
  2245. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2246.     break;}
  2247. case 290:
  2248. #line 1282 "../gcc-1.37/c-parse.y"
  2249. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2250.     break;}
  2251. case 291:
  2252. #line 1284 "../gcc-1.37/c-parse.y"
  2253. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2254.     break;}
  2255. case 292:
  2256. #line 1290 "../gcc-1.37/c-parse.y"
  2257. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  2258.     break;}
  2259. case 293:
  2260. #line 1292 "../gcc-1.37/c-parse.y"
  2261. { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  2262.     break;}
  2263. }
  2264.    /* the action file gets copied in in place of this dollarsign */
  2265. #line 327 "bison.simple"
  2266.  
  2267.   yyvsp -= yylen;
  2268.   yyssp -= yylen;
  2269. #ifdef YYLSP_NEEDED
  2270.   yylsp -= yylen;
  2271. #endif
  2272.  
  2273. #if YYDEBUG != 0
  2274.   if (yydebug)
  2275.     {
  2276.       short *ssp1 = yyss - 1;
  2277.       fprintf (stderr, "state stack now");
  2278.       while (ssp1 != yyssp)
  2279.     fprintf (stderr, " %d", *++ssp1);
  2280.       fprintf (stderr, "\n");
  2281.     }
  2282. #endif
  2283.  
  2284.   *++yyvsp = yyval;
  2285.  
  2286. #ifdef YYLSP_NEEDED
  2287.   yylsp++;
  2288.   if (yylen == 0)
  2289.     {
  2290.       yylsp->first_line = yylloc.first_line;
  2291.       yylsp->first_column = yylloc.first_column;
  2292.       yylsp->last_line = (yylsp-1)->last_line;
  2293.       yylsp->last_column = (yylsp-1)->last_column;
  2294.       yylsp->text = 0;
  2295.     }
  2296.   else
  2297.     {
  2298.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  2299.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  2300.     }
  2301. #endif
  2302.  
  2303.   /* Now "shift" the result of the reduction.
  2304.      Determine what state that goes to,
  2305.      based on the state we popped back to
  2306.      and the rule number reduced by.  */
  2307.  
  2308.   yyn = yyr1[yyn];
  2309.  
  2310.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  2311.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  2312.     yystate = yytable[yystate];
  2313.   else
  2314.     yystate = yydefgoto[yyn - YYNTBASE];
  2315.  
  2316.   goto yynewstate;
  2317.  
  2318. yyerrlab:   /* here on detecting error */
  2319.  
  2320.   if (! yyerrstatus)
  2321.     /* If not already recovering from an error, report this error.  */
  2322.     {
  2323.       ++yynerrs;
  2324.       yyerror("parse error");
  2325.     }
  2326.  
  2327.   if (yyerrstatus == 3)
  2328.     {
  2329.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  2330.  
  2331.       /* return failure if at end of input */
  2332.       if (yychar == YYEOF)
  2333.     YYABORT;
  2334.  
  2335. #if YYDEBUG != 0
  2336.       if (yydebug)
  2337.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  2338. #endif
  2339.  
  2340.       yychar = YYEMPTY;
  2341.     }
  2342.  
  2343.   /* Else will try to reuse lookahead token
  2344.      after shifting the error token.  */
  2345.  
  2346.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  2347.  
  2348.   goto yyerrhandle;
  2349.  
  2350. yyerrdefault:  /* current state does not do anything special for the error token. */
  2351.  
  2352. #if 0
  2353.   /* This is wrong; only states that explicitly want error tokens
  2354.      should shift them.  */
  2355.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  2356.   if (yyn) goto yydefault;
  2357. #endif
  2358.  
  2359. yyerrpop:   /* pop the current state because it cannot handle the error token */
  2360.  
  2361.   if (yyssp == yyss) YYABORT;
  2362.   yyvsp--;
  2363.   yystate = *--yyssp;
  2364. #ifdef YYLSP_NEEDED
  2365.   yylsp--;
  2366. #endif
  2367.  
  2368. #if YYDEBUG != 0
  2369.   if (yydebug)
  2370.     {
  2371.       short *ssp1 = yyss - 1;
  2372.       fprintf (stderr, "Error: state stack now");
  2373.       while (ssp1 != yyssp)
  2374.     fprintf (stderr, " %d", *++ssp1);
  2375.       fprintf (stderr, "\n");
  2376.     }
  2377. #endif
  2378.  
  2379. yyerrhandle:
  2380.  
  2381.   yyn = yypact[yystate];
  2382.   if (yyn == YYFLAG)
  2383.     goto yyerrdefault;
  2384.  
  2385.   yyn += YYTERROR;
  2386.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  2387.     goto yyerrdefault;
  2388.  
  2389.   yyn = yytable[yyn];
  2390.   if (yyn < 0)
  2391.     {
  2392.       if (yyn == YYFLAG)
  2393.     goto yyerrpop;
  2394.       yyn = -yyn;
  2395.       goto yyreduce;
  2396.     }
  2397.   else if (yyn == 0)
  2398.     goto yyerrpop;
  2399.  
  2400.   if (yyn == YYFINAL)
  2401.     YYACCEPT;
  2402.  
  2403. #if YYDEBUG != 0
  2404.   if (yydebug)
  2405.     fprintf(stderr, "Shifting error token, ");
  2406. #endif
  2407.  
  2408.   *++yyvsp = yylval;
  2409. #ifdef YYLSP_NEEDED
  2410.   *++yylsp = yylloc;
  2411. #endif
  2412.  
  2413.   yystate = yyn;
  2414.   goto yynewstate;
  2415. }
  2416. #line 1294 "../gcc-1.37/c-parse.y"
  2417.  
  2418.  
  2419. /* Return something to represent absolute declarators containing a *.
  2420.    TARGET is the absolute declarator that the * contains.
  2421.    TYPE_QUALS is a list of modifiers such as const or volatile
  2422.    to apply to the pointer type, represented as identifiers.
  2423.  
  2424.    We return an INDIRECT_REF whose "contents" are TARGET
  2425.    and whose type is the modifier list.  */
  2426.  
  2427. static tree
  2428. make_pointer_declarator (type_quals, target)
  2429.      tree type_quals, target;
  2430. {
  2431.   return build (INDIRECT_REF, type_quals, target);
  2432. }
  2433.  
  2434. /* Given a chain of STRING_CST nodes,
  2435.    concatenate them into one STRING_CST
  2436.    and give it a suitable array-of-chars data type.  */
  2437.  
  2438. static tree
  2439. combine_strings (strings)
  2440.      tree strings;
  2441. {
  2442.   register tree value, t;
  2443.   register int length = 1;
  2444.   int wide_length = 0;
  2445.   int wide_flag = 0;
  2446.  
  2447.   if (TREE_CHAIN (strings))
  2448.     {
  2449.       /* More than one in the chain, so concatenate.  */
  2450.       register char *p, *q;
  2451.  
  2452.       /* Don't include the \0 at the end of each substring,
  2453.      except for the last one.
  2454.      Count wide strings and ordinary strings separately.  */
  2455.       for (t = strings; t; t = TREE_CHAIN (t))
  2456.     {
  2457.       if (TREE_TYPE (t) == int_array_type_node)
  2458.         {
  2459.           wide_length += (TREE_STRING_LENGTH (t) - 1);
  2460.           wide_flag = 1;
  2461.         }
  2462.       else
  2463.         length += (TREE_STRING_LENGTH (t) - 1);
  2464.     }
  2465.  
  2466.       /* If anything is wide, the non-wides will be converted,
  2467.      which makes them take more space.  */
  2468.       if (wide_flag)
  2469.     length = length * UNITS_PER_WORD + wide_length;
  2470.  
  2471.       p = (char *) savealloc (length);
  2472.  
  2473.       /* Copy the individual strings into the new combined string.
  2474.      If the combined string is wide, convert the chars to ints
  2475.      for any individual strings that are not wide.  */
  2476.  
  2477.       q = p;
  2478.       for (t = strings; t; t = TREE_CHAIN (t))
  2479.     {
  2480.       int len = TREE_STRING_LENGTH (t) - 1;
  2481.       if ((TREE_TYPE (t) == int_array_type_node) == wide_flag)
  2482.         {
  2483.           bcopy (TREE_STRING_POINTER (t), q, len);
  2484.           q += len;
  2485.         }
  2486.       else
  2487.         {
  2488.           int i;
  2489.           for (i = 0; i < len; i++)
  2490.         ((int *) q)[i] = TREE_STRING_POINTER (t)[i];
  2491.           q += len * UNITS_PER_WORD;
  2492.         }
  2493.     }
  2494.       *q = 0;
  2495.  
  2496.       value = make_node (STRING_CST);
  2497.       TREE_STRING_POINTER (value) = p;
  2498.       TREE_STRING_LENGTH (value) = length;
  2499.       TREE_LITERAL (value) = 1;
  2500.     }
  2501.   else
  2502.     {
  2503.       value = strings;
  2504.       length = TREE_STRING_LENGTH (value);
  2505.       if (TREE_TYPE (value) == int_array_type_node)
  2506.     wide_flag = 1;
  2507.     }
  2508.  
  2509.   /* Create the array type for the string constant.
  2510.      -Wwrite-strings says make the string constant an array of const char
  2511.      so that copying it to a non-const pointer will get a warning.  */
  2512.   if (warn_write_strings)
  2513.     {
  2514.       tree elements
  2515.     = build_type_variant (wide_flag ? integer_type_node : char_type_node,
  2516.                   1, 0);
  2517.       TREE_TYPE (value)
  2518.     = build_array_type (elements,
  2519.                 build_index_type (build_int_2 (length - 1, 0)));
  2520.     }
  2521.   else
  2522.     TREE_TYPE (value)
  2523.       = build_array_type (wide_flag ? integer_type_node : char_type_node,
  2524.               build_index_type (build_int_2 (length - 1, 0)));
  2525.   TREE_LITERAL (value) = 1;
  2526.   TREE_STATIC (value) = 1;
  2527.   return value;
  2528. }
  2529.  
  2530. int lineno;            /* current line number in file being read */
  2531.  
  2532. FILE *finput;            /* input file.
  2533.                    Normally a pipe from the preprocessor.  */
  2534.  
  2535. /* lexical analyzer */
  2536.  
  2537. static int maxtoken;        /* Current nominal length of token buffer.  */
  2538. static char *token_buffer;    /* Pointer to token buffer.
  2539.                    Actual allocated length is maxtoken + 2.  */
  2540. static int max_wide;        /* Current nominal length of wide_buffer.  */
  2541. static int *wide_buffer;    /* Pointer to wide-string buffer.
  2542.                    Actual allocated length is max_wide + 1.  */
  2543.  
  2544. /* Nonzero if end-of-file has been seen on input.  */
  2545. static int end_of_file;
  2546.  
  2547. /* Data type that represents the GNU C reserved words. */
  2548. struct resword { char *name; short token; enum rid rid; };
  2549.  
  2550. #define MIN_WORD_LENGTH     2      /* minimum size for C keyword */
  2551. #define MAX_WORD_LENGTH     13     /* maximum size for C keyword */
  2552. #define MIN_HASH_VALUE      7      /* range of the hash keys values  */
  2553. #define MAX_HASH_VALUE      91     /* for the perfect hash generator */
  2554. #define NORID RID_UNUSED
  2555.  
  2556. /* This function performs the minimum-perfect hash mapping from input
  2557.    string to reswords table index.  It only looks at the first and
  2558.    last characters in the string, thus assuring the O(1) lookup time
  2559.    (this keeps our constant down to an insignificant amount!).  Compiling
  2560.    the following 2 functions as inline removes all overhead of the
  2561.    function calls. */
  2562.  
  2563. #ifdef __GNUC__
  2564. __inline
  2565. #endif
  2566. static int
  2567. hash (str, len)
  2568.      register char *str;
  2569.      register int len;
  2570. {
  2571. /* This table is used to build the hash table index that recognizes
  2572.    reserved words in 0(1) steps.  It is larger than strictly necessary,
  2573.    but I'm trading off the space for the time-saving luxury of avoiding
  2574.    subtraction of an offset.  All those ``91's'' (actually just a
  2575.    short-hand for MAX_HASH_VALUE #defined above) are used to speed up
  2576.    the search when the string found on the input stream doesn't have a
  2577.    first or last character that is part of the set of alphabetic
  2578.    characters that comprise the first or last characters in C
  2579.    reserved words. */
  2580.  
  2581.   static int hash_table[] =
  2582.     {
  2583.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2584.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2585.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2586.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2587.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2588.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2589.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2590.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2591.      91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
  2592.      91, 91, 91, 91, 91,  1, 91,  2,  1, 32,
  2593.       7,  5, 18, 20,  1, 17, 91,  1, 18,  1,
  2594.      28,  1, 23, 91, 12, 20,  1, 41,  7, 15,
  2595.      91, 91, 10, 91, 91, 91, 91, 91,
  2596.     };
  2597.   register int hval = len ;
  2598.  
  2599.   switch (hval)
  2600.     {
  2601.       default:
  2602.       case 3:
  2603.         hval += hash_table[str[2]];
  2604.       case 2:
  2605.       case 1:
  2606.         return hval + hash_table[str[0]] + hash_table[str[len - 1]];
  2607.     }
  2608. }
  2609.  
  2610. /* This routine attempts to match the string found in the reswords table
  2611.    with the one from the input stream.  If all the relevant details
  2612.    match then an actual strcmp comparison is performed and the address of
  2613.    correct struct resword entry is returned.  Otherwise, a NULL
  2614.    pointer is returned. */
  2615.  
  2616. #ifdef __GNUC__
  2617. __inline
  2618. #endif
  2619. struct resword *
  2620. is_reserved_word (str, len)
  2621.      register char *str;
  2622.      register int len;
  2623. {
  2624.   /* This is the hash table of keywords.
  2625.      The order of keywords has been chosen for perfect hashing.
  2626.      Therefore, this table cannot be updated by hand.
  2627.      Use the program ``gperf,'' available with the latest libg++
  2628.      distribution, to generate an updated table.  A file called
  2629.      c-parse.gperf, distributed with GNU C, contains the keyword file.  */
  2630.  
  2631.   static struct resword reswords[] =
  2632.     {
  2633.       { "", }, { "", }, { "", }, { "", }, { "", }, { "", }, { "", }, 
  2634.       {"asm",  ASM, NORID },
  2635.       {"auto",  SCSPEC, RID_AUTO },
  2636.       {"__asm",  ASM, NORID },
  2637.       {"do",  DO, NORID },
  2638.       {"__asm__",  ASM, NORID },
  2639.       {"break",  BREAK, NORID },
  2640.       {"__typeof__",  TYPEOF, NORID },
  2641.       { "", }, 
  2642.       {"__alignof__",  ALIGNOF, NORID },
  2643.       { "", }, 
  2644.       {"__attribute__",  ATTRIBUTE, NORID },
  2645.       { "", }, 
  2646.       {"__attribute",  ATTRIBUTE, NORID },
  2647.       { "", }, 
  2648.       {"__volatile__",  TYPE_QUAL, RID_VOLATILE },
  2649.       {"int",  TYPESPEC, RID_INT },
  2650.       {"__volatile",  TYPE_QUAL, RID_VOLATILE },
  2651.       { "", }, 
  2652.       {"float",  TYPESPEC, RID_FLOAT },
  2653.       {"goto",  GOTO, NORID },
  2654.       {"short",  TYPESPEC, RID_SHORT },
  2655.       {"__typeof",  TYPEOF, NORID },
  2656.       {"__inline__",  SCSPEC, RID_INLINE },
  2657.       {"__alignof",  ALIGNOF, NORID },
  2658.       {"__inline",  SCSPEC, RID_INLINE },
  2659.       {"__signed__",  TYPESPEC, RID_SIGNED },
  2660.       {"default",  DEFAULT, NORID },
  2661.       {"else",  ELSE, NORID },
  2662.       {"void",  TYPESPEC, RID_VOID },
  2663.       {"__signed",  TYPESPEC, RID_SIGNED },
  2664.       {"if",  IF, NORID },
  2665.       {"volatile",  TYPE_QUAL, RID_VOLATILE },
  2666.       {"struct",  STRUCT, NORID },
  2667.       {"extern",  SCSPEC, RID_EXTERN },
  2668.       {"__const",  TYPE_QUAL, RID_CONST },
  2669.       {"while",  WHILE, NORID },
  2670.       {"__const__",  TYPE_QUAL, RID_CONST },
  2671.       {"switch",  SWITCH, NORID },
  2672.       {"for",  FOR, NORID },
  2673.       {"inline",  SCSPEC, RID_INLINE },
  2674.       {"return",  RETURN, NORID },
  2675.       {"typeof",  TYPEOF, NORID },
  2676.       {"typedef",  SCSPEC, RID_TYPEDEF },
  2677.       {"char",  TYPESPEC, RID_CHAR },
  2678.       {"enum",  ENUM, NORID },
  2679.       {"register",  SCSPEC, RID_REGISTER },
  2680.       {"signed",  TYPESPEC, RID_SIGNED },
  2681.       {"sizeof",  SIZEOF, NORID },
  2682.       { "", }, { "", }, { "", }, { "", }, 
  2683.       {"double",  TYPESPEC, RID_DOUBLE },
  2684.       {"static",  SCSPEC, RID_STATIC },
  2685.       {"case",  CASE, NORID },
  2686.       { "", }, { "", }, { "", }, { "", }, 
  2687.       {"const",  TYPE_QUAL, RID_CONST },
  2688.       { "", }, { "", }, { "", }, 
  2689.       {"long",  TYPESPEC, RID_LONG },
  2690.       { "", }, { "", }, 
  2691.       {"continue",  CONTINUE, NORID },
  2692.       { "", }, { "", }, 
  2693.       {"unsigned",  TYPESPEC, RID_UNSIGNED },
  2694.       { "", }, { "", }, { "", }, { "", }, { "", }, { "", }, { "", }, { "", }, { "", }, 
  2695.       { "", }, { "", }, { "", }, { "", }, { "", }, 
  2696.       {"union",  UNION, NORID },
  2697.     };
  2698.  
  2699.   if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
  2700.     {
  2701.       register int key = hash (str, len);
  2702.  
  2703.       if (key <= MAX_HASH_VALUE)
  2704.         {
  2705.           register char *s = reswords[key].name;
  2706.  
  2707.           if (*s == *str && !strcmp (str + 1, s + 1))
  2708.             return &reswords[key];
  2709.         }
  2710.     }
  2711.   return 0;
  2712. }
  2713.  
  2714. /* The elements of `ridpointers' are identifier nodes
  2715.    for the reserved type names and storage classes.
  2716.    It is indexed by a RID_... value.  */
  2717.  
  2718. tree ridpointers[(int) RID_MAX];
  2719.  
  2720. int check_newline ();
  2721.  
  2722. void
  2723. init_lex ()
  2724. {
  2725.   /* Start it at 0, because check_newline is called at the very beginning
  2726.      and will increment it to 1.  */
  2727.   lineno = 0;
  2728.  
  2729.   maxtoken = 40;
  2730.   token_buffer = (char *) xmalloc (maxtoken + 2);
  2731.   max_wide = 40;
  2732.   wide_buffer = (int *) xmalloc (max_wide + 1);
  2733.  
  2734.   ridpointers[(int) RID_INT] = get_identifier ("int");
  2735.   ridpointers[(int) RID_CHAR] = get_identifier ("char");
  2736.   ridpointers[(int) RID_VOID] = get_identifier ("void");
  2737.   ridpointers[(int) RID_FLOAT] = get_identifier ("float");
  2738.   ridpointers[(int) RID_DOUBLE] = get_identifier ("double");
  2739.   ridpointers[(int) RID_SHORT] = get_identifier ("short");
  2740.   ridpointers[(int) RID_LONG] = get_identifier ("long");
  2741.   ridpointers[(int) RID_UNSIGNED] = get_identifier ("unsigned");
  2742.   ridpointers[(int) RID_SIGNED] = get_identifier ("signed");
  2743.   ridpointers[(int) RID_INLINE] = get_identifier ("inline");
  2744.   ridpointers[(int) RID_CONST] = get_identifier ("const");
  2745.   ridpointers[(int) RID_VOLATILE] = get_identifier ("volatile");
  2746.   ridpointers[(int) RID_AUTO] = get_identifier ("auto");
  2747.   ridpointers[(int) RID_STATIC] = get_identifier ("static");
  2748.   ridpointers[(int) RID_EXTERN] = get_identifier ("extern");
  2749.   ridpointers[(int) RID_TYPEDEF] = get_identifier ("typedef");
  2750.   ridpointers[(int) RID_REGISTER] = get_identifier ("register");
  2751. }
  2752.  
  2753. static void
  2754. reinit_parse_for_function ()
  2755. {
  2756. }
  2757.  
  2758. /* If C is not whitespace, return C.
  2759.    Otherwise skip whitespace and return first nonwhite char read.  */
  2760.  
  2761. static int
  2762. skip_white_space (c)
  2763.      register int c;
  2764. {
  2765. #if 0
  2766.   register int inside;
  2767. #endif
  2768.  
  2769.   for (;;)
  2770.     {
  2771.       switch (c)
  2772.     {
  2773.       /* Don't recognize comments in cc1: all comments are removed by cpp,
  2774.          and cpp output can include / and * consecutively as operators.  */
  2775. #if 0
  2776.     case '/':
  2777.       c = getc (finput);
  2778.       if (c != '*')
  2779.         {
  2780.           ungetc (c, finput);
  2781.           return '/';
  2782.         }
  2783.  
  2784.       c = getc (finput);
  2785.  
  2786.       inside = 1;
  2787.       while (inside)
  2788.         {
  2789.           if (c == '*')
  2790.         {
  2791.           while (c == '*')
  2792.             c = getc (finput);
  2793.  
  2794.           if (c == '/')
  2795.             {
  2796.               inside = 0;
  2797.               c = getc (finput);
  2798.             }
  2799.         }
  2800.           else if (c == '\n')
  2801.         {
  2802.           lineno++;
  2803.           c = getc (finput);
  2804.         }
  2805.           else if (c == EOF)
  2806.         {
  2807.           error ("unterminated comment");
  2808.           break;
  2809.         }
  2810.           else
  2811.         c = getc (finput);
  2812.         }
  2813.  
  2814.       break;
  2815. #endif
  2816.  
  2817.     case '\n':
  2818.       c = check_newline ();
  2819.       break;
  2820.  
  2821.     case ' ':
  2822.     case '\t':
  2823.     case '\f':
  2824.     case '\r':
  2825.     case '\v':
  2826.     case '\b':
  2827.       c = getc (finput);
  2828.       break;
  2829.  
  2830.     case '\\':
  2831.       c = getc (finput);
  2832.       if (c == '\n')
  2833.         lineno++;
  2834.       else
  2835.         error ("stray '\\' in program");
  2836.       c = getc (finput);
  2837.       break;
  2838.  
  2839.     default:
  2840.       return (c);
  2841.     }
  2842.     }
  2843. }
  2844.  
  2845.  
  2846.  
  2847. /* Make the token buffer longer, preserving the data in it.
  2848.    P should point to just beyond the last valid character in the old buffer.
  2849.    The value we return is a pointer to the new buffer
  2850.    at a place corresponding to P.  */
  2851.  
  2852. static char *
  2853. extend_token_buffer (p)
  2854.      char *p;
  2855. {
  2856.   int offset = p - token_buffer;
  2857.  
  2858.   maxtoken = maxtoken * 2 + 10;
  2859.   token_buffer = (char *) xrealloc (token_buffer, maxtoken + 2);
  2860.  
  2861.   return token_buffer + offset;
  2862. }
  2863.  
  2864. /* At the beginning of a line, increment the line number
  2865.    and process any #-directive on this line.
  2866.    If the line is a #-directive, read the entire line and return a newline.
  2867.    Otherwise, return the line's first non-whitespace character.  */
  2868.  
  2869. int
  2870. check_newline ()
  2871. {
  2872.   register int c;
  2873.   register int token;
  2874.  
  2875.   lineno++;
  2876.  
  2877.   /* Read first nonwhite char on the line.  */
  2878.  
  2879.   c = getc (finput);
  2880.   while (c == ' ' || c == '\t')
  2881.     c = getc (finput);
  2882.  
  2883.   if (c != '#')
  2884.     {
  2885.       /* If not #, return it so caller will use it.  */
  2886.       return c;
  2887.     }
  2888.  
  2889.   /* Read first nonwhite char after the `#'.  */
  2890.  
  2891.   c = getc (finput);
  2892.   while (c == ' ' || c == '\t')
  2893.     c = getc (finput);
  2894.  
  2895.   /* If a letter follows, then if the word here is `line', skip
  2896.      it and ignore it; otherwise, ignore the line, with an error
  2897.      if the word isn't `pragma'.  */
  2898.  
  2899.   if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
  2900.     {
  2901.       if (c == 'p')
  2902.     {
  2903.       if (getc (finput) == 'r'
  2904.           && getc (finput) == 'a'
  2905.           && getc (finput) == 'g'
  2906.           && getc (finput) == 'm'
  2907.           && getc (finput) == 'a'
  2908.           && ((c = getc (finput)) == ' ' || c == '\t' || c == '\n'))
  2909.         goto skipline;
  2910.     }
  2911.  
  2912.       else if (c == 'l')
  2913.     {
  2914.       if (getc (finput) == 'i'
  2915.           && getc (finput) == 'n'
  2916.           && getc (finput) == 'e'
  2917.           && ((c = getc (finput)) == ' ' || c == '\t'))
  2918.         goto linenum;
  2919.     }
  2920.       else if (c == 'i')
  2921.     {
  2922.       if (getc (finput) == 'd'
  2923.           && getc (finput) == 'e'
  2924.           && getc (finput) == 'n'
  2925.           && getc (finput) == 't'
  2926.           && ((c = getc (finput)) == ' ' || c == '\t'))
  2927.         {
  2928.           extern FILE *asm_out_file;
  2929.  
  2930.           if (pedantic)
  2931.         error ("ANSI C does not allow #ident");
  2932.  
  2933.           /* Here we have just seen `#ident '.
  2934.          A string constant should follow.  */
  2935.  
  2936.           while (c == ' ' || c == '\t')
  2937.         c = getc (finput);
  2938.  
  2939.           /* If no argument, ignore the line.  */
  2940.           if (c == '\n')
  2941.         return c;
  2942.  
  2943.           ungetc (c, finput);
  2944.           token = yylex ();
  2945.           if (token != STRING
  2946.           || TREE_CODE (yylval.ttype) != STRING_CST)
  2947.         {
  2948.           error ("invalid #ident");
  2949.           goto skipline;
  2950.         }
  2951.  
  2952. #ifdef ASM_OUTPUT_IDENT
  2953.           ASM_OUTPUT_IDENT (asm_out_file, TREE_STRING_POINTER (yylval.ttype));
  2954. #endif
  2955.  
  2956.           /* Skip the rest of this line.  */
  2957.           goto skipline;
  2958.         }
  2959.     }
  2960.  
  2961.       error ("undefined or invalid # directive");
  2962.       goto skipline;
  2963.     }
  2964.  
  2965. linenum:
  2966.   /* Here we have either `#line' or `# <nonletter>'.
  2967.      In either case, it should be a line number; a digit should follow.  */
  2968.  
  2969.   while (c == ' ' || c == '\t')
  2970.     c = getc (finput);
  2971.  
  2972.   /* If the # is the only nonwhite char on the line,
  2973.      just ignore it.  Check the new newline.  */
  2974.   if (c == '\n')
  2975.     return c;
  2976.  
  2977.   /* Something follows the #; read a token.  */
  2978.  
  2979.   ungetc (c, finput);
  2980.   token = yylex ();
  2981.  
  2982.   if (token == CONSTANT
  2983.       && TREE_CODE (yylval.ttype) == INTEGER_CST)
  2984.     {
  2985.       int old_lineno = lineno;
  2986.       /* subtract one, because it is the following line that
  2987.      gets the specified number */
  2988.  
  2989.       int l = TREE_INT_CST_LOW (yylval.ttype) - 1;
  2990.  
  2991.       /* Is this the last nonwhite stuff on the line?  */
  2992.       c = getc (finput);
  2993.       while (c == ' ' || c == '\t')
  2994.     c = getc (finput);
  2995.       if (c == '\n')
  2996.     {
  2997.       /* No more: store the line number and check following line.  */
  2998.       lineno = l;
  2999.       return c;
  3000.     }
  3001.       ungetc (c, finput);
  3002.  
  3003.       /* More follows: it must be a string constant (filename).  */
  3004.  
  3005.       token = yylex ();
  3006.       if (token != STRING || TREE_CODE (yylval.ttype) != STRING_CST)
  3007.     {
  3008.       error ("invalid #line");
  3009.       goto skipline;
  3010.     }
  3011.  
  3012.       input_filename
  3013.     = (char *) permalloc (TREE_STRING_LENGTH (yylval.ttype) + 1);
  3014.       strcpy (input_filename, TREE_STRING_POINTER (yylval.ttype));
  3015.       lineno = l;
  3016.  
  3017.       if (main_input_filename == 0)
  3018.     main_input_filename = input_filename;
  3019.  
  3020.       /* Is this the last nonwhite stuff on the line?  */
  3021.       c = getc (finput);
  3022.       while (c == ' ' || c == '\t')
  3023.     c = getc (finput);
  3024.       if (c == '\n')
  3025.     return c;
  3026.       ungetc (c, finput);
  3027.  
  3028.       token = yylex ();
  3029.  
  3030.       /* `1' after file name means entering new file.
  3031.      `2' after file name means just left a file.  */
  3032.  
  3033.       if (token == CONSTANT
  3034.       && TREE_CODE (yylval.ttype) == INTEGER_CST)
  3035.     {
  3036.       if (TREE_INT_CST_LOW (yylval.ttype) == 1)
  3037.         {
  3038.           struct file_stack *p
  3039.         = (struct file_stack *) xmalloc (sizeof (struct file_stack));
  3040.           input_file_stack->line = old_lineno;
  3041.           p->next = input_file_stack;
  3042.           p->name = input_filename;
  3043.           input_file_stack = p;
  3044.           input_file_stack_tick++;
  3045.         }
  3046.       else if (input_file_stack->next)
  3047.         {
  3048.           struct file_stack *p = input_file_stack;
  3049.           input_file_stack = p->next;
  3050.           free (p);
  3051.           input_file_stack_tick++;
  3052.         }
  3053.       else
  3054.         error ("#-lines for entering and leaving files don't match");
  3055.     }
  3056.     }
  3057.   else
  3058.     error ("invalid #-line");
  3059.  
  3060.   /* skip the rest of this line.  */
  3061.  skipline:
  3062.   if (c == '\n')
  3063.     return c;
  3064.   while ((c = getc (finput)) != EOF && c != '\n');
  3065.   return c;
  3066. }
  3067.  
  3068. #define isalnum(char) ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || (char >= '0' && char <= '9'))
  3069. #define isdigit(char) (char >= '0' && char <= '9')
  3070. #define ENDFILE -1  /* token that represents end-of-file */
  3071.  
  3072.  
  3073. static int
  3074. readescape ()
  3075. {
  3076.   register int c = getc (finput);
  3077.   register int count, code;
  3078.   int firstdig;
  3079.  
  3080.   switch (c)
  3081.     {
  3082.     case 'x':
  3083.       code = 0;
  3084.       count = 0;
  3085.       while (1)
  3086.     {
  3087.       c = getc (finput);
  3088.       if (!(c >= 'a' && c <= 'f')
  3089.           && !(c >= 'A' && c <= 'F')
  3090.           && !(c >= '0' && c <= '9'))
  3091.         {
  3092.           ungetc (c, finput);
  3093.           break;
  3094.         }
  3095.       code *= 16;
  3096.       if (c >= 'a' && c <= 'f')
  3097.         code += c - 'a' + 10;
  3098.       if (c >= 'A' && c <= 'F')
  3099.         code += c - 'A' + 10;
  3100.       if (c >= '0' && c <= '9')
  3101.         code += c - '0';
  3102.       if (count == 0)
  3103.         firstdig = code;
  3104.       count++;
  3105.     }
  3106.       if (count == 0)
  3107.     error ("\\x used with no following hex digits");
  3108.       else if ((count - 1) * 4 >= TYPE_PRECISION (integer_type_node)
  3109.            || ((1 << (TYPE_PRECISION (integer_type_node) - (count - 1) * 4))
  3110.            <= firstdig))
  3111.     warning ("hex escape out of range");
  3112.       return code;
  3113.  
  3114.     case '0':  case '1':  case '2':  case '3':  case '4':
  3115.     case '5':  case '6':  case '7':
  3116.       code = 0;
  3117.       count = 0;
  3118.       while ((c <= '7') && (c >= '0') && (count++ < 3))
  3119.     {
  3120.       code = (code * 8) + (c - '0');
  3121.       c = getc (finput);
  3122.     }
  3123.       ungetc (c, finput);
  3124.       return code;
  3125.  
  3126.     case '\\': case '\'': case '"':
  3127.       return c;
  3128.  
  3129.     case '\n':
  3130.       lineno++;
  3131.       return -1;
  3132.  
  3133.     case 'n':
  3134.       return TARGET_NEWLINE;
  3135.  
  3136.     case 't':
  3137.       return TARGET_TAB;
  3138.  
  3139.     case 'r':
  3140.       return TARGET_CR;
  3141.  
  3142.     case 'f':
  3143.       return TARGET_FF;
  3144.  
  3145.     case 'b':
  3146.       return TARGET_BS;
  3147.  
  3148.     case 'a':
  3149.       return TARGET_BELL;
  3150.  
  3151.     case 'v':
  3152.       return TARGET_VT;
  3153.  
  3154.     case 'E':
  3155.       return 033;
  3156.  
  3157.     case '?':
  3158.       /* `\(', etc, are used at beginning of line to avoid confusing Emacs.  */
  3159.     case '(':
  3160.     case '{':
  3161.     case '[':
  3162.       return c;
  3163.     }
  3164.   if (c >= 040 && c <= 0177)
  3165.     warning ("unknown escape sequence `\\%c'", c);
  3166.   else
  3167.     warning ("unknown escape sequence: `\\' followed by char code 0x%x", c);
  3168.   return c;
  3169. }
  3170.  
  3171. void
  3172. yyerror (string)
  3173.      char *string;
  3174. {
  3175.   char buf[200];
  3176.  
  3177.   strcpy (buf, string);
  3178.  
  3179.   /* We can't print string and character constants well
  3180.      because the token_buffer contains the result of processing escapes.  */
  3181.   if (end_of_file)
  3182.     strcat (buf, " at end of input");
  3183.   else if (token_buffer[0] == 0)
  3184.     strcat (buf, " at null character");
  3185.   else if (token_buffer[0] == '"')
  3186.     strcat (buf, " before string constant");
  3187.   else if (token_buffer[0] == '\'')
  3188.     strcat (buf, " before character constant");
  3189.   else if (token_buffer[0] < 040 || token_buffer[0] >= 0177)
  3190.     sprintf (buf + strlen (buf), " before character 0%o", token_buffer[0]);
  3191.   else
  3192.     strcat (buf, " before `%s'");
  3193.  
  3194.   error (buf, token_buffer);
  3195. }
  3196.  
  3197. static int nextchar = -1;
  3198.  
  3199. static int
  3200. yylex ()
  3201. {
  3202.   register int c;
  3203.   register char *p;
  3204.   register int value;
  3205.   int wide_flag = 0;
  3206.  
  3207.   if (nextchar >= 0)
  3208.     c = nextchar, nextchar = -1;
  3209.   else
  3210.     c = getc (finput);
  3211.  
  3212.   /* Effectively do c = skip_white_space (c)
  3213.      but do it faster in the usual cases.  */
  3214.   while (1)
  3215.     switch (c)
  3216.       {
  3217.       case ' ':
  3218.       case '\t':
  3219.       case '\f':
  3220.       case '\r':
  3221.       case '\v':
  3222.       case '\b':
  3223.     c = getc (finput);
  3224.     break;
  3225.  
  3226.       case '\n':
  3227.       case '/':
  3228.       case '\\':
  3229.     c = skip_white_space (c);
  3230.       default:
  3231.     goto found_nonwhite;
  3232.       }
  3233.  found_nonwhite:
  3234.  
  3235.   token_buffer[0] = c;
  3236.   token_buffer[1] = 0;
  3237.  
  3238. /*  yylloc.first_line = lineno; */
  3239.  
  3240.   switch (c)
  3241.     {
  3242.     case EOF:
  3243.       end_of_file = 1;
  3244.       token_buffer[0] = 0;
  3245.       value = ENDFILE;
  3246.       break;
  3247.  
  3248.     case '$':
  3249.       if (dollars_in_ident)
  3250.     goto letter;
  3251.       return '$';
  3252.  
  3253.     case 'L':
  3254.       /* Capital L may start a wide-string or wide-character constant.  */
  3255.       {
  3256.     register int c = getc (finput);
  3257.     if (c == '\'')
  3258.       {
  3259.         wide_flag = 1;
  3260.         goto char_constant;
  3261.       }
  3262.     if (c == '"')
  3263.       {
  3264.         wide_flag = 1;
  3265.         goto string_constant;
  3266.       }
  3267.     ungetc (c, finput);
  3268.       }
  3269.  
  3270.     case 'A':  case 'B':  case 'C':  case 'D':  case 'E':
  3271.     case 'F':  case 'G':  case 'H':  case 'I':  case 'J':
  3272.     case 'K':          case 'M':  case 'N':  case 'O':
  3273.     case 'P':  case 'Q':  case 'R':  case 'S':  case 'T':
  3274.     case 'U':  case 'V':  case 'W':  case 'X':  case 'Y':
  3275.     case 'Z':
  3276.     case 'a':  case 'b':  case 'c':  case 'd':  case 'e':
  3277.     case 'f':  case 'g':  case 'h':  case 'i':  case 'j':
  3278.     case 'k':  case 'l':  case 'm':  case 'n':  case 'o':
  3279.     case 'p':  case 'q':  case 'r':  case 's':  case 't':
  3280.     case 'u':  case 'v':  case 'w':  case 'x':  case 'y':
  3281.     case 'z':
  3282.     case '_':
  3283.     letter:
  3284.       p = token_buffer;
  3285.       while (isalnum (c) || c == '_' || c == '$')
  3286.     {
  3287.       if (p >= token_buffer + maxtoken)
  3288.         p = extend_token_buffer (p);
  3289.       if (c == '$' && ! dollars_in_ident)
  3290.         break;
  3291.  
  3292.       *p++ = c;
  3293.       c = getc (finput);
  3294.     }
  3295.  
  3296.       *p = 0;
  3297.       nextchar = c;
  3298.  
  3299.       value = IDENTIFIER;
  3300.       yylval.itype = 0;
  3301.  
  3302.       /* Try to recognize a keyword.  Uses minimum-perfect hash function */
  3303.  
  3304.       {
  3305.     register struct resword *ptr;
  3306.  
  3307.     if (ptr = is_reserved_word (token_buffer, p - token_buffer))
  3308.       {
  3309.         if (ptr->rid)
  3310.           yylval.ttype = ridpointers[(int) ptr->rid];
  3311.         if ((! flag_no_asm
  3312.          /* -fno-asm means don't recognize the non-ANSI keywords.  */
  3313.          || ((int) ptr->token != ASM
  3314.              && (int) ptr->token != TYPEOF
  3315.              && ptr->rid != RID_INLINE)
  3316.          /* Recognize __asm and __inline despite -fno-asm.  */
  3317.          || token_buffer[0] == '_')
  3318.         /* -ftraditional means don't recognize nontraditional keywords
  3319.            typeof, const, volatile, signed or inline.  */
  3320.         && (! flag_traditional
  3321.             || ((int) ptr->token != TYPE_QUAL
  3322.             && (int) ptr->token != TYPEOF
  3323.             && ptr->rid != RID_SIGNED
  3324.             && ptr->rid != RID_INLINE)
  3325.             /* Recognize __inline, etc. despite -ftraditional.  */
  3326.             || token_buffer[0] == '_'))
  3327.           value = (int) ptr->token;
  3328.       }
  3329.       }
  3330.  
  3331.       /* If we did not find a keyword, look for an identifier
  3332.      (or a typename).  */
  3333.  
  3334.       if (value == IDENTIFIER)
  3335.     {
  3336.           yylval.ttype = get_identifier (token_buffer);
  3337.       lastiddecl = lookup_name (yylval.ttype);
  3338.  
  3339.       if (lastiddecl != 0 && TREE_CODE (lastiddecl) == TYPE_DECL)
  3340.         value = TYPENAME;
  3341.     }
  3342.  
  3343.       break;
  3344.  
  3345.     case '0':  case '1':  case '2':  case '3':  case '4':
  3346.     case '5':  case '6':  case '7':  case '8':  case '9':
  3347.     case '.':
  3348.       {
  3349.     int base = 10;
  3350.     int count = 0;
  3351.     int largest_digit = 0;
  3352.     int numdigits = 0;
  3353.     /* for multi-precision arithmetic,
  3354.        we store only 8 live bits in each short,
  3355.        giving us 64 bits of reliable precision */
  3356.     short shorts[8];
  3357.     int overflow = 0;
  3358.  
  3359.     enum anon1 { NOT_FLOAT, AFTER_POINT, TOO_MANY_POINTS} floatflag
  3360.       = NOT_FLOAT;
  3361.  
  3362.     for (count = 0; count < 8; count++)
  3363.       shorts[count] = 0;
  3364.  
  3365.     p = token_buffer;
  3366.     *p++ = c;
  3367.  
  3368.     if (c == '0')
  3369.       {
  3370.         *p++ = (c = getc (finput));
  3371.         if ((c == 'x') || (c == 'X'))
  3372.           {
  3373.         base = 16;
  3374.         *p++ = (c = getc (finput));
  3375.           }
  3376.         else
  3377.           {
  3378.         base = 8;
  3379.         numdigits++;
  3380.           }
  3381.       }
  3382.  
  3383.     /* Read all the digits-and-decimal-points.  */
  3384.  
  3385.     while (c == '.'
  3386.            || (isalnum (c) && (c != 'l') && (c != 'L')
  3387.            && (c != 'u') && (c != 'U')
  3388.            && (floatflag == NOT_FLOAT || ((c != 'f') && (c != 'F')))))
  3389.       {
  3390.         if (c == '.')
  3391.           {
  3392.         if (base == 16)
  3393.           error ("floating constant may not be in radix 16");
  3394.         if (floatflag == AFTER_POINT)
  3395.           {
  3396.             error ("malformed floating constant");
  3397.             floatflag = TOO_MANY_POINTS;
  3398.           }
  3399.         else
  3400.           floatflag = AFTER_POINT;
  3401.  
  3402.         base = 10;
  3403.         *p++ = c = getc (finput);
  3404.         /* Accept '.' as the start of a floating-point number
  3405.            only when it is followed by a digit.
  3406.            Otherwise, unread the following non-digit
  3407.            and use the '.' as a structural token.  */
  3408.         if (p == token_buffer + 2 && !isdigit (c))
  3409.           {
  3410.             if (c == '.')
  3411.               {
  3412.             c = getc (finput);
  3413.             if (c == '.')
  3414.               {
  3415.                 *p++ = c;
  3416.                 *p = 0;
  3417.                 return ELLIPSIS;
  3418.               }
  3419.             error ("parse error at `..'");
  3420.               }
  3421.             ungetc (c, finput);
  3422.             token_buffer[1] = 0;
  3423.             value = '.';
  3424.             goto done;
  3425.           }
  3426.           }
  3427.         else
  3428.           {
  3429.         /* It is not a decimal point.
  3430.            It should be a digit (perhaps a hex digit).  */
  3431.  
  3432.         if (isdigit (c))
  3433.           {
  3434.             c = c - '0';
  3435.           }
  3436.         else if (base <= 10)
  3437.           {
  3438.             if ((c&~040) == 'E')
  3439.               {
  3440.             base = 10;
  3441.             floatflag = AFTER_POINT;
  3442.             break;   /* start of exponent */
  3443.               }
  3444.             error ("nondigits in number and not hexadecimal");
  3445.             c = 0;
  3446.           }
  3447.         else if (c >= 'a')
  3448.           {
  3449.             c = c - 'a' + 10;
  3450.           }
  3451.         else
  3452.           {
  3453.             c = c - 'A' + 10;
  3454.           }
  3455.         if (c >= largest_digit)
  3456.           largest_digit = c;
  3457.         numdigits++;
  3458.  
  3459.         for (count = 0; count < 8; count++)
  3460.           {
  3461.             shorts[count] *= base;
  3462.             if (count)
  3463.               {
  3464.             shorts[count] += (shorts[count-1] >> 8);
  3465.             shorts[count-1] &= (1<<8)-1;
  3466.               }
  3467.             else shorts[0] += c;
  3468.           }
  3469.  
  3470.         if (shorts[7] >= 1<<8
  3471.             || shorts[7] < - (1 << 8))
  3472.           overflow = TRUE;
  3473.  
  3474.         if (p >= token_buffer + maxtoken - 3)
  3475.           p = extend_token_buffer (p);
  3476.         *p++ = (c = getc (finput));
  3477.           }
  3478.       }
  3479.  
  3480.     if (numdigits == 0)
  3481.       error ("numeric constant with no digits");
  3482.  
  3483.     if (largest_digit >= base)
  3484.       error ("numeric constant contains digits beyond the radix");
  3485.  
  3486.     /* Remove terminating char from the token buffer and delimit the string */
  3487.     *--p = 0;
  3488.  
  3489.     if (floatflag != NOT_FLOAT)
  3490.       {
  3491.         tree type = double_type_node;
  3492.         char f_seen = 0;
  3493.         char l_seen = 0;
  3494.         REAL_VALUE_TYPE value;
  3495.  
  3496.         /* Read explicit exponent if any, and put it in tokenbuf.  */
  3497.  
  3498.         if ((c == 'e') || (c == 'E'))
  3499.           {
  3500.         if (p >= token_buffer + maxtoken - 3)
  3501.           p = extend_token_buffer (p);
  3502.         *p++ = c;
  3503.         c = getc (finput);
  3504.         if ((c == '+') || (c == '-'))
  3505.           {
  3506.             *p++ = c;
  3507.             c = getc (finput);
  3508.           }
  3509.         if (! isdigit (c))
  3510.           error ("floating constant exponent has no digits");
  3511.             while (isdigit (c))
  3512.           {
  3513.             if (p >= token_buffer + maxtoken - 3)
  3514.               p = extend_token_buffer (p);
  3515.             *p++ = c;
  3516.             c = getc (finput);
  3517.           }
  3518.           }
  3519.  
  3520.         *p = 0;
  3521.         errno = 0;
  3522.         value = REAL_VALUE_ATOF (token_buffer);
  3523. #ifdef ERANGE
  3524.         if (errno == ERANGE && !flag_traditional)
  3525.           {
  3526.         char *p1 = token_buffer;
  3527.         /* Check for "0.0" and variants;
  3528.            Sunos 4 spuriously returns ERANGE for them.  */
  3529.         while (*p1 == '0') p1++;
  3530.         if (*p1 == '.')
  3531.           {
  3532.             p1++;
  3533.             while (*p1 == '0') p1++;
  3534.           }
  3535.         if (*p1 == 'e' || *p1 == 'E')
  3536.           {
  3537.             /* with significand==0, ignore the exponent */
  3538.             p1++;
  3539.             while (*p1 != 0) p1++;
  3540.           }
  3541.         /* ERANGE is also reported for underflow,
  3542.            so test the value to distinguish overflow from that.  */
  3543.         if (*p1 != 0 && (value > 1.0 || value < 1.0))
  3544.           warning ("floating point number exceeds range of `double'");
  3545.           }
  3546. #endif
  3547.  
  3548.         /* Read the suffixes to choose a data type.  */
  3549.         while (1)
  3550.           {
  3551.         if (c == 'f' || c == 'F')
  3552.           {
  3553.             float floater;
  3554.             if (f_seen)
  3555.               error ("two `f's in floating constant");
  3556.             f_seen = 1;
  3557.             type = float_type_node;
  3558.             floater = value;
  3559.             value = floater;
  3560.           }
  3561.         else if (c == 'l' || c == 'L')
  3562.           {
  3563.             if (l_seen)
  3564.               error ("two `l's in floating constant");
  3565.             l_seen = 1;
  3566.             type = long_double_type_node;
  3567.           }
  3568.         else
  3569.           {
  3570.             if (isalnum (c))
  3571.               {
  3572.             error ("garbage at end of number");
  3573.             while (isalnum (c))
  3574.               {
  3575.                 if (p >= token_buffer + maxtoken - 3)
  3576.                   p = extend_token_buffer (p);
  3577.                 *p++ = c;
  3578.                 c = getc (finput);
  3579.               }
  3580.               }
  3581.             break;
  3582.           }
  3583.         if (p >= token_buffer + maxtoken - 3)
  3584.           p = extend_token_buffer (p);
  3585.         *p++ = c;
  3586.         c = getc (finput);
  3587.           }
  3588.  
  3589.         /* Create a node with determined type and value.  */
  3590.         yylval.ttype = build_real (type, value);
  3591.  
  3592.         ungetc (c, finput);
  3593.         *p = 0;
  3594.       }
  3595.     else
  3596.       {
  3597.         tree type;
  3598.         int spec_unsigned = 0;
  3599.         int spec_long = 0;
  3600.         int spec_long_long = 0;
  3601.  
  3602.         while (1)
  3603.           {
  3604.         if (c == 'u' || c == 'U')
  3605.           {
  3606.             if (spec_unsigned)
  3607.               error ("two `u's in integer constant");
  3608.             spec_unsigned = 1;
  3609.           }
  3610.         else if (c == 'l' || c == 'L')
  3611.           {
  3612.             if (spec_long)
  3613.               {
  3614.             if (spec_long_long)
  3615.               error ("three `l's in integer constant");
  3616.             else if (pedantic)
  3617.               warning ("ANSI C forbids long long integer constants");
  3618.             spec_long_long = 1;
  3619.               }
  3620.             spec_long = 1;
  3621.           }
  3622.         else
  3623.           {
  3624.             if (isalnum (c))
  3625.               {
  3626.             error ("garbage at end of number");
  3627.             while (isalnum (c))
  3628.               {
  3629.                 if (p >= token_buffer + maxtoken - 3)
  3630.                   p = extend_token_buffer (p);
  3631.                 *p++ = c;
  3632.                 c = getc (finput);
  3633.               }
  3634.               }
  3635.             break;
  3636.           }
  3637.         if (p >= token_buffer + maxtoken - 3)
  3638.           p = extend_token_buffer (p);
  3639.         *p++ = c;
  3640.         c = getc (finput);
  3641.           }
  3642.  
  3643.         ungetc (c, finput);
  3644.  
  3645.         if ((overflow || shorts[7] || shorts[6] || shorts[5] || shorts[4])
  3646.         && !spec_long_long)
  3647.           warning ("integer constant out of range");
  3648.  
  3649.         /* If it won't fit in a signed long long, make it unsigned.
  3650.            We can't distinguish based on the tree node because
  3651.            any integer constant fits any long long type.  */
  3652.         if (shorts[7] >= (1<<8))
  3653.           spec_unsigned = 1;
  3654.  
  3655.         /* This is simplified by the fact that our constant
  3656.            is always positive.  */
  3657.         yylval.ttype
  3658.           = (build_int_2
  3659.          ((shorts[3]<<24) + (shorts[2]<<16) + (shorts[1]<<8) + shorts[0],
  3660.           (spec_long_long
  3661.            ? (shorts[7]<<24) + (shorts[6]<<16) + (shorts[5]<<8) + shorts[4]
  3662.            : 0)));
  3663.  
  3664.         if (!spec_long && !spec_unsigned
  3665.         && int_fits_type_p (yylval.ttype, integer_type_node))
  3666.           type = integer_type_node;
  3667.  
  3668.         else if (!spec_long && base != 10
  3669.              && int_fits_type_p (yylval.ttype, unsigned_type_node))
  3670.           type = unsigned_type_node;
  3671.  
  3672.         else if (!spec_unsigned && !spec_long_long
  3673.              && int_fits_type_p (yylval.ttype, long_integer_type_node))
  3674.           type = long_integer_type_node;
  3675.  
  3676.         else if (! spec_long_long
  3677.              && int_fits_type_p (yylval.ttype,
  3678.                      long_unsigned_type_node))
  3679.           type = long_unsigned_type_node;
  3680.  
  3681.         else if (! spec_unsigned
  3682.              && int_fits_type_p (yylval.ttype,
  3683.                      long_long_integer_type_node))
  3684.           type = long_long_integer_type_node;
  3685.  
  3686.         else if (int_fits_type_p (yylval.ttype,
  3687.                       long_long_unsigned_type_node))
  3688.           type = long_long_unsigned_type_node;
  3689.  
  3690.         else
  3691.           {
  3692.         type = long_long_integer_type_node;
  3693.         warning ("integer constant out of range");
  3694.           }
  3695.  
  3696.         TREE_TYPE (yylval.ttype) = type;
  3697.       }
  3698.  
  3699.     value = CONSTANT; break;
  3700.       }
  3701.  
  3702.     case '\'':
  3703.     char_constant:
  3704.       {
  3705.     register int result = 0;
  3706.     register num_chars = 0;
  3707.     int width = TYPE_PRECISION (char_type_node);
  3708.     int max_chars;
  3709.  
  3710.     if (wide_flag) width = TYPE_PRECISION (integer_type_node);
  3711.  
  3712.     max_chars = TYPE_PRECISION (integer_type_node) / width;
  3713.  
  3714.     while (1)
  3715.       {
  3716.       tryagain:
  3717.  
  3718.         c = getc (finput);
  3719.  
  3720.         if (c == '\'' || c == EOF)
  3721.           break;
  3722.  
  3723.         if (c == '\\')
  3724.           {
  3725.         c = readescape ();
  3726.         if (c < 0)
  3727.           goto tryagain;
  3728.         if (width < HOST_BITS_PER_INT
  3729.             && (unsigned) c >= (1 << width))
  3730.           warning ("escape sequence out of range for character");
  3731.           }
  3732.         else if (c == '\n')
  3733.           {
  3734.         if (pedantic)
  3735.           warning ("ANSI C forbids newline in character constant");
  3736.         lineno++;
  3737.           }
  3738.  
  3739.         num_chars++;
  3740.         if (num_chars > maxtoken - 4)
  3741.           extend_token_buffer (token_buffer);
  3742.  
  3743.         token_buffer[num_chars] = c;
  3744.  
  3745.         /* Merge character into result; ignore excess chars.  */
  3746.         if (num_chars < max_chars + 1)
  3747.           {
  3748.         if (width < HOST_BITS_PER_INT)
  3749.           result = (result << width) | (c & ((1 << width) - 1));
  3750.         else
  3751.           result = c;
  3752.           }
  3753.       }
  3754.  
  3755.     token_buffer[num_chars + 1] = '\'';
  3756.     token_buffer[num_chars + 2] = 0;
  3757.  
  3758.     if (c != '\'')
  3759.       error ("malformatted character constant");
  3760.     else if (num_chars == 0)
  3761.       error ("empty character constant");
  3762.     else if (num_chars > max_chars)
  3763.       {
  3764.         num_chars = max_chars;
  3765.         error ("character constant too long");
  3766.       }
  3767.     else if (num_chars != 1 && ! flag_traditional)
  3768.       warning ("multi-character character constant");
  3769.  
  3770.     /* If char type is signed, sign-extend the constant.  */
  3771.     if (! wide_flag)
  3772.       {
  3773.         int num_bits = num_chars * width;
  3774.         if (TREE_UNSIGNED (char_type_node)
  3775.         || ((result >> (num_bits - 1)) & 1) == 0)
  3776.           yylval.ttype
  3777.         = build_int_2 (result & ((unsigned) ~0
  3778.                      >> (HOST_BITS_PER_INT - num_bits)),
  3779.                    0);
  3780.         else
  3781.           yylval.ttype
  3782.         = build_int_2 (result | ~((unsigned) ~0
  3783.                       >> (HOST_BITS_PER_INT - num_bits)),
  3784.                    -1);
  3785.       }
  3786.     else
  3787.       yylval.ttype = build_int_2 (result, 0);
  3788.  
  3789.     TREE_TYPE (yylval.ttype) = integer_type_node;
  3790.     value = CONSTANT; break;
  3791.       }
  3792.  
  3793.     case '"':
  3794.     string_constant:
  3795.       {
  3796.     int *widep;
  3797.  
  3798.     c = getc (finput);
  3799.     p = token_buffer + 1;
  3800.  
  3801.     if (wide_flag)
  3802.       widep = wide_buffer;
  3803.  
  3804.     while (c != '"' && c >= 0)
  3805.       {
  3806.         if (c == '\\')
  3807.           {
  3808.         c = readescape ();
  3809.         if (c < 0)
  3810.           goto skipnewline;
  3811.         if (!wide_flag && c >= (1 << TYPE_PRECISION (char_type_node)))
  3812.           warning ("escape sequence out of range for character");
  3813.           }
  3814.         else if (c == '\n')
  3815.           {
  3816.         if (pedantic)
  3817.           warning ("ANSI C forbids newline in string constant");
  3818.         lineno++;
  3819.           }
  3820.  
  3821.         /* Store the char in C into the appropriate buffer.  */
  3822.  
  3823.         if (wide_flag)
  3824.           {
  3825.         if (widep == wide_buffer + max_wide)
  3826.           {
  3827.             int n = widep - wide_buffer;
  3828.             max_wide *= 2;
  3829.             wide_buffer = (int *) xrealloc (wide_buffer, max_wide + 1);
  3830.             widep = wide_buffer + n;
  3831.           }
  3832.         *widep++ = c;
  3833.           }
  3834.         else
  3835.           {
  3836.         if (p == token_buffer + maxtoken)
  3837.           p = extend_token_buffer (p);
  3838.         *p++ = c;
  3839.           }
  3840.  
  3841.       skipnewline:
  3842.         c = getc (finput);
  3843.       }
  3844.  
  3845.     /* We have read the entire constant.
  3846.        Construct a STRING_CST for the result.  */
  3847.  
  3848.     if (wide_flag)
  3849.       {
  3850.         /* If this is a L"..." wide-string, make a vector
  3851.            of the ints in wide_buffer.  */
  3852.         *widep = 0;
  3853.         /* We have not implemented the case where `int'
  3854.            on the target and on the execution machine differ in size.  */
  3855.         if (TYPE_PRECISION (integer_type_node)
  3856.         != sizeof (int) * BITS_PER_UNIT)
  3857.           abort ();
  3858.         yylval.ttype
  3859.           = build_string ((widep - wide_buffer + 1) * sizeof (int),
  3860.                   wide_buffer);
  3861.         TREE_TYPE (yylval.ttype) = int_array_type_node;
  3862.       }
  3863.     else
  3864.       {
  3865.         *p = 0;
  3866.         yylval.ttype = build_string (p - token_buffer, token_buffer + 1);
  3867.         TREE_TYPE (yylval.ttype) = char_array_type_node;
  3868.       }
  3869.  
  3870.     *p++ = '"';
  3871.     *p = 0;
  3872.  
  3873.     value = STRING; break;
  3874.       }
  3875.  
  3876.     case '+':
  3877.     case '-':
  3878.     case '&':
  3879.     case '|':
  3880.     case '<':
  3881.     case '>':
  3882.     case '*':
  3883.     case '/':
  3884.     case '%':
  3885.     case '^':
  3886.     case '!':
  3887.     case '=':
  3888.       {
  3889.     register int c1;
  3890.  
  3891.       combine:
  3892.  
  3893.     switch (c)
  3894.       {
  3895.       case '+':
  3896.         yylval.code = PLUS_EXPR; break;
  3897.       case '-':
  3898.         yylval.code = MINUS_EXPR; break;
  3899.       case '&':
  3900.         yylval.code = BIT_AND_EXPR; break;
  3901.       case '|':
  3902.         yylval.code = BIT_IOR_EXPR; break;
  3903.       case '*':
  3904.         yylval.code = MULT_EXPR; break;
  3905.       case '/':
  3906.         yylval.code = TRUNC_DIV_EXPR; break;
  3907.       case '%':
  3908.         yylval.code = TRUNC_MOD_EXPR; break;
  3909.       case '^':
  3910.         yylval.code = BIT_XOR_EXPR; break;
  3911.       case LSHIFT:
  3912.         yylval.code = LSHIFT_EXPR; break;
  3913.       case RSHIFT:
  3914.         yylval.code = RSHIFT_EXPR; break;
  3915.       case '<':
  3916.         yylval.code = LT_EXPR; break;
  3917.       case '>':
  3918.         yylval.code = GT_EXPR; break;
  3919.       }
  3920.  
  3921.     token_buffer[1] = c1 = getc (finput);
  3922.     token_buffer[2] = 0;
  3923.  
  3924.     if (c1 == '=')
  3925.       {
  3926.         switch (c)
  3927.           {
  3928.           case '<':
  3929.         value = ARITHCOMPARE; yylval.code = LE_EXPR; goto done;
  3930.           case '>':
  3931.         value = ARITHCOMPARE; yylval.code = GE_EXPR; goto done;
  3932.           case '!':
  3933.         value = EQCOMPARE; yylval.code = NE_EXPR; goto done;
  3934.           case '=':
  3935.         value = EQCOMPARE; yylval.code = EQ_EXPR; goto done;
  3936.           }
  3937.         value = ASSIGN; goto done;
  3938.       }
  3939.     else if (c == c1)
  3940.       switch (c)
  3941.         {
  3942.         case '+':
  3943.           value = PLUSPLUS; goto done;
  3944.         case '-':
  3945.           value = MINUSMINUS; goto done;
  3946.         case '&':
  3947.           value = ANDAND; goto done;
  3948.         case '|':
  3949.           value = OROR; goto done;
  3950.         case '<':
  3951.           c = LSHIFT;
  3952.           goto combine;
  3953.         case '>':
  3954.           c = RSHIFT;
  3955.           goto combine;
  3956.         }
  3957.     else if ((c == '-') && (c1 == '>'))
  3958.       { value = POINTSAT; goto done; }
  3959.     ungetc (c1, finput);
  3960.     token_buffer[1] = 0;
  3961.  
  3962.     if ((c == '<') || (c == '>'))
  3963.       value = ARITHCOMPARE;
  3964.     else value = c;
  3965.     goto done;
  3966.       }
  3967.  
  3968.     case 0:
  3969.       /* Don't make yyparse think this is eof.  */
  3970.       value = 1;
  3971.       break;
  3972.  
  3973.     default:
  3974.       value = c;
  3975.     }
  3976.  
  3977. done:
  3978. /*  yylloc.last_line = lineno; */
  3979.  
  3980.   return value;
  3981. }
  3982.